Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3 in downloads for ltmain.sh


Ignore:
Timestamp:
Oct 9, 2007, 6:41:19 PM (17 years ago)
Author:
anonymous
Message:

=update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ltmain.sh

    r1 r3  
    22# NOTE: Changing this file will not affect anything until you rerun configure.
    33#
    4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
     4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
    55# Free Software Foundation, Inc.
    66# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
     
    1818# You should have received a copy of the GNU General Public License
    1919# along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    2121#
    2222# As a special exception to the GNU General Public License, if you
     
    4444PROGRAM=ltmain.sh
    4545PACKAGE=libtool
    46 VERSION=1.5.6
    47 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
    48 
     46VERSION=1.5.20
     47TIMESTAMP=" (1.1220.2.287 2005/08/31 18:54:15)"
     48
     49# See if we are running on zsh, and set the options which allow our
     50# commands through without removal of \ escapes.
     51if test -n "${ZSH_VERSION+set}" ; then
     52  setopt NO_GLOB_SUBST
     53fi
    4954
    5055# Check that we have a working $echo.
     
    8489sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
    8590# test EBCDIC or ASCII
    86 case `echo A|tr A '\301'` in
    87  A) # EBCDIC based system
    88   SP2NL="tr '\100' '\n'"
    89   NL2SP="tr '\r\n' '\100\100'"
     91case `echo X|tr X '\101'` in
     92 A) # ASCII based system
     93    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
     94  SP2NL='tr \040 \012'
     95  NL2SP='tr \015\012 \040\040'
    9096  ;;
    91  *) # Assume ASCII based system
    92   SP2NL="tr '\040' '\012'"
    93   NL2SP="tr '\015\012' '\040\040'"
     97 *) # EBCDIC based system
     98  SP2NL='tr \100 \n'
     99  NL2SP='tr \r\n \100\100'
    94100  ;;
    95101esac
     
    108114
    109115# Make sure IFS has a sensible default
    110 : ${IFS="       
    111 "}
     116lt_nl='
     117'
     118IFS="   $lt_nl"
    112119
    113120if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
     
    139146# Has to be a shell function in order to 'eat' the argument
    140147# that is supplied when $file_magic_command is called.
    141 func_win32_libid () {
     148func_win32_libid ()
     149{
    142150  win32_libid_type="unknown"
    143151  win32_fileres=`file -L $1 2>/dev/null`
     
    179187# command doesn't match the default compiler.
    180188# arg is usually of the form 'gcc ...'
    181 func_infer_tag () {
     189func_infer_tag ()
     190{
    182191    if test -n "$available_tags" && test -z "$tagname"; then
    183192      CC_quoted=
     
    236245    fi
    237246}
     247
     248
     249# func_extract_an_archive dir oldlib
     250func_extract_an_archive ()
     251{
     252    f_ex_an_ar_dir="$1"; shift
     253    f_ex_an_ar_oldlib="$1"
     254
     255    $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
     256    $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
     257    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
     258     :
     259    else
     260      $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
     261      exit $EXIT_FAILURE
     262    fi
     263}
     264
     265# func_extract_archives gentop oldlib ...
     266func_extract_archives ()
     267{
     268    my_gentop="$1"; shift
     269    my_oldlibs=${1+"$@"}
     270    my_oldobjs=""
     271    my_xlib=""
     272    my_xabs=""
     273    my_xdir=""
     274    my_status=""
     275
     276    $show "${rm}r $my_gentop"
     277    $run ${rm}r "$my_gentop"
     278    $show "$mkdir $my_gentop"
     279    $run $mkdir "$my_gentop"
     280    my_status=$?
     281    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
     282      exit $my_status
     283    fi
     284
     285    for my_xlib in $my_oldlibs; do
     286      # Extract the objects.
     287      case $my_xlib in
     288        [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
     289        *) my_xabs=`pwd`"/$my_xlib" ;;
     290      esac
     291      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
     292      my_xdir="$my_gentop/$my_xlib"
     293
     294      $show "${rm}r $my_xdir"
     295      $run ${rm}r "$my_xdir"
     296      $show "$mkdir $my_xdir"
     297      $run $mkdir "$my_xdir"
     298      status=$?
     299      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
     300        exit $status
     301      fi
     302      case $host in
     303      *-darwin*)
     304        $show "Extracting $my_xabs"
     305        # Do not bother doing anything if just a dry run
     306        if test -z "$run"; then
     307          darwin_orig_dir=`pwd`
     308          cd $my_xdir || exit $?
     309          darwin_archive=$my_xabs
     310          darwin_curdir=`pwd`
     311          darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
     312          darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
     313          if test -n "$darwin_arches"; then
     314            darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
     315            darwin_arch=
     316            $show "$darwin_base_archive has multiple architectures $darwin_arches"
     317            for darwin_arch in  $darwin_arches ; do
     318              mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
     319              lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
     320              cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
     321              func_extract_an_archive "`pwd`" "${darwin_base_archive}"
     322              cd "$darwin_curdir"
     323              $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
     324            done # $darwin_arches
     325      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
     326            darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
     327            darwin_file=
     328            darwin_files=
     329            for darwin_file in $darwin_filelist; do
     330              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
     331              lipo -create -output "$darwin_file" $darwin_files
     332            done # $darwin_filelist
     333            ${rm}r unfat-$$
     334            cd "$darwin_orig_dir"
     335          else
     336            cd "$darwin_orig_dir"
     337            func_extract_an_archive "$my_xdir" "$my_xabs"
     338          fi # $darwin_arches
     339        fi # $run
     340        ;;
     341      *)
     342        func_extract_an_archive "$my_xdir" "$my_xabs"
     343        ;;
     344      esac
     345      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
     346    done
     347    func_extract_archives_result="$my_oldobjs"
     348}
    238349# End of Shell function definitions
    239350#####################################
     
    306417    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
    307418    $echo
    308     $echo "Copyright (C) 2003  Free Software Foundation, Inc."
     419    $echo "Copyright (C) 2005  Free Software Foundation, Inc."
    309420    $echo "This is free software; see the source for copying conditions.  There is NO"
    310421    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    311     exit $EXIT_SUCCESS
     422    exit $?
    312423    ;;
    313424
     
    318429      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
    319430    done
    320     exit $EXIT_SUCCESS
     431    exit $?
    321432    ;;
    322433
     
    343454      $echo "disable static libraries"
    344455    fi
    345     exit $EXIT_SUCCESS
     456    exit $?
    346457    ;;
    347458
     
    400511  if test -z "$mode"; then
    401512    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
    402     $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
     513    $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
    403514    case $nonopt in
    404515    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
     
    466577    for arg
    467578    do
    468       case "$arg_mode" in
     579      case $arg_mode in
    469580      arg  )
    470581        # do not "continue".  Instead, add this to base_compile
     
    548659      # Double-quote args containing other shell metacharacters.
    549660      # Many Bourne shells cannot handle close brackets correctly
    550       # in scan sets, so we specify it separately.
     661      # in scan sets, and some SunOS ksh mistreat backslash-escaping
     662      # in scan sets (worked around with variable expansion),
     663      # and furthermore cannot handle '|' '&' '(' ')' in scan sets
     664      # at all, so we specify them separately.
    551665      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    552666        lastarg="\"$lastarg\""
     
    622736    done
    623737
     738    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
     739    case $qlibobj in
     740      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
     741        qlibobj="\"$qlibobj\"" ;;
     742    esac
     743    test "X$libobj" != "X$qlibobj" \
     744        && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
     745        && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
    624746    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
    625747    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
     
    694816        exit $EXIT_FAILURE
    695817      fi
    696       $echo $srcfile > "$lockfile"
     818      $echo "$srcfile" > "$lockfile"
    697819    fi
    698820
     
    700822      eval srcfile=\"$fix_srcfile_path\"
    701823    fi
     824    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
     825    case $qsrcfile in
     826      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
     827      qsrcfile="\"$qsrcfile\"" ;;
     828    esac
    702829
    703830    $run $rm "$libobj" "${libobj}T"
     
    721848
    722849      if test "$pic_mode" != no; then
    723         command="$base_compile $srcfile $pic_flag"
     850        command="$base_compile $qsrcfile $pic_flag"
    724851      else
    725852        # Don't build PIC code
    726         command="$base_compile $srcfile"
     853        command="$base_compile $qsrcfile"
    727854      fi
    728855
     
    804931      if test "$pic_mode" != yes; then
    805932        # Don't build PIC code
    806         command="$base_compile $srcfile"
     933        command="$base_compile $qsrcfile"
    807934      else
    808         command="$base_compile $srcfile $pic_flag"
     935        command="$base_compile $qsrcfile $pic_flag"
    809936      fi
    810937      if test "$compiler_c_o" = yes; then
     
    12281355          continue
    12291356          ;;
     1357        darwin_framework)
     1358          compiler_flags="$compiler_flags $arg"
     1359          compile_command="$compile_command $arg"
     1360          finalize_command="$finalize_command $arg"
     1361          prev=
     1362          continue
     1363          ;;
    12301364        *)
    12311365          eval "$prev=\"\$arg\""
     
    12851419        continue
    12861420        ;;
     1421
     1422      -framework|-arch)
     1423        prev=darwin_framework
     1424        compiler_flags="$compiler_flags $arg"
     1425        compile_command="$compile_command $arg"
     1426        finalize_command="$finalize_command $arg"
     1427        continue
     1428        ;;
    12871429
    12881430      -inst-prefix-dir)
     
    13461488            test "X$arg" = "X-lc" && continue
    13471489            ;;
    1348           *-*-openbsd* | *-*-freebsd*)
     1490          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
    13491491            # Do not include libc due to us having libc/libc_r.
    13501492            test "X$arg" = "X-lc" && continue
     
    13571499        elif test "X$arg" = "X-lc_r"; then
    13581500         case $host in
    1359          *-*-openbsd* | *-*-freebsd*)
     1501         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
    13601502           # Do not include libc_r directly, use -pthread flag.
    13611503           continue
     
    13671509        ;;
    13681510
     1511      # Tru64 UNIX uses -model [arg] to determine the layout of C++
     1512      # classes, name mangling, and exception handling.
     1513      -model)
     1514        compile_command="$compile_command $arg"
     1515        compiler_flags="$compiler_flags $arg"
     1516        finalize_command="$finalize_command $arg"
     1517        prev=xcompiler
     1518        continue
     1519        ;;
     1520
    13691521     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
    1370         deplibs="$deplibs $arg"
     1522        compiler_flags="$compiler_flags $arg"
     1523        compile_command="$compile_command $arg"
     1524        finalize_command="$finalize_command $arg"
    13711525        continue
    13721526        ;;
     
    13771531        ;;
    13781532
    1379       # gcc -m* arguments should be passed to the linker via $compiler_flags
    1380       # in order to pass architecture information to the linker
    1381       # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
    1382       # but this is not reliable with gcc because gcc may use -mfoo to
    1383       # select a different linker, different libraries, etc, while
    1384       # -Wl,-mfoo simply passes -mfoo to the linker.
    1385       -m*)
     1533      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
     1534      # -r[0-9][0-9]* specifies the processor on the SGI compiler
     1535      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
     1536      # +DA*, +DD* enable 64-bit mode on the HP compiler
     1537      # -q* pass through compiler args for the IBM compiler
     1538      # -m* pass through architecture-specific compiler args for GCC
     1539      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
     1540
    13861541        # Unknown arguments in both finalize_command and compile_command need
    13871542        # to be aesthetically quoted because they are evaled later.
     
    18391994        dlopen) libs="$dlfiles" ;;
    18401995        dlpreopen) libs="$dlprefiles" ;;
    1841         link)
    1842           libs="$deplibs %DEPLIBS%"
    1843           test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
    1844           ;;
     1996        link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
    18451997        esac
    18461998      fi
     
    18592011            finalize_deplibs="$deplib $finalize_deplibs"
    18602012          else
    1861             deplibs="$deplib $deplibs"
     2013            compiler_flags="$compiler_flags $deplib"
    18622014          fi
    18632015          continue
     
    19782130          case $linkmode in
    19792131          lib)
    1980             if test "$deplibs_check_method" != pass_all; then
     2132            valid_a_lib=no
     2133            case $deplibs_check_method in
     2134              match_pattern*)
     2135                set dummy $deplibs_check_method
     2136                match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
     2137                if eval $echo \"$deplib\" 2>/dev/null \
     2138                    | $SED 10q \
     2139                    | $EGREP "$match_pattern_regex" > /dev/null; then
     2140                  valid_a_lib=yes
     2141                fi
     2142                ;;
     2143              pass_all)
     2144                valid_a_lib=yes
     2145                ;;
     2146            esac
     2147            if test "$valid_a_lib" != yes; then
    19812148              $echo
    19822149              $echo "*** Warning: Trying to link with static lib archive $deplib."
     
    20522219        installed=yes
    20532220        shouldnotlink=no
     2221        avoidtemprpath=
     2222
    20542223
    20552224        # Read the .la file
     
    21502319            absdir="$libdir"
    21512320          fi
     2321          test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
    21522322        else
    2153           dir="$ladir/$objdir"
    2154           absdir="$abs_ladir/$objdir"
    2155           # Remove this search path later
    2156           notinst_path="$notinst_path $abs_ladir"
     2323          if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
     2324            dir="$ladir"
     2325            absdir="$abs_ladir"
     2326            # Remove this search path later
     2327            notinst_path="$notinst_path $abs_ladir"
     2328          else
     2329            dir="$ladir/$objdir"
     2330            absdir="$abs_ladir/$objdir"
     2331            # Remove this search path later
     2332            notinst_path="$notinst_path $abs_ladir"
     2333          fi
    21572334        fi # $installed = yes
    21582335        name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
     
    22272404             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
    22282405            # We need to hardcode the library path
    2229             if test -n "$shlibpath_var"; then
     2406            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
    22302407              # Make sure the rpath contains only unique directories.
    22312408              case "$temp_rpath " in
    22322409              *" $dir "*) ;;
    22332410              *" $absdir "*) ;;
    2234               *) temp_rpath="$temp_rpath $dir" ;;
     2411              *) temp_rpath="$temp_rpath $absdir" ;;
    22352412              esac
    22362413            fi
     
    24182595                # Try looking first in the location we're being installed to.
    24192596                if test -n "$inst_prefix_dir"; then
    2420                   case "$libdir" in
     2597                  case $libdir in
    24212598                    [\\/]*)
    24222599                      add_dir="$add_dir -L$inst_prefix_dir$libdir"
     
    24912668              # Try looking first in the location we're being installed to.
    24922669              if test -n "$inst_prefix_dir"; then
    2493                 case "$libdir" in
     2670                case $libdir in
    24942671                  [\\/]*)
    24952672                    add_dir="$add_dir -L$inst_prefix_dir$libdir"
     
    25522729            fi
    25532730          else
    2554             convenience="$convenience $dir/$old_library"
    2555             old_convenience="$old_convenience $dir/$old_library"
    25562731            deplibs="$dir/$old_library $deplibs"
    25572732            link_static=yes
     
    26712846              esac
    26722847              case " $deplibs " in
     2848              *" $path "*) ;;
     2849              *) deplibs="$path $deplibs" ;;
     2850              esac
     2851              case " $deplibs " in
    26732852              *" $depdepl "*) ;;
    26742853              *) deplibs="$depdepl $deplibs" ;;
    2675               esac
    2676               case " $deplibs " in
    2677               *" $path "*) ;;
    2678               *) deplibs="$deplibs $path" ;;
    26792854              esac
    26802855            done
     
    29303105            revision="$number_minor"
    29313106            ;;
    2932           *)
    2933             $echo "$modename: unknown library version type \`$version_type'" 1>&2
    2934             $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
    2935             exit $EXIT_FAILURE
    2936             ;;
    29373107          esac
    29383108          ;;
     
    29483118        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    29493119        *)
    2950           $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
     3120          $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
    29513121          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    29523122          exit $EXIT_FAILURE
     
    29573127        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    29583128        *)
    2959           $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
     3129          $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
    29603130          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    29613131          exit $EXIT_FAILURE
     
    29663136        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    29673137        *)
    2968           $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
     3138          $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
    29693139          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    29703140          exit $EXIT_FAILURE
     
    29923162          # Darwin ld doesn't like 0 for these options...
    29933163          minor_current=`expr $current + 1`
    2994           verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
     3164          verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
    29953165          ;;
    29963166
     
    31983368            # Don't link with libc until the a.out ld.so is fixed.
    31993369            ;;
    3200           *-*-openbsd* | *-*-freebsd*)
     3370          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
    32013371            # Do not include libc due to us having libc/libc_r.
    32023372            test "X$arg" = "X-lc" && continue
     
    32483418            ldd_output=`ldd conftest`
    32493419            for i in $deplibs; do
    3250               name="`expr $i : '-l\(.*\)'`"
     3420              name=`expr $i : '-l\(.*\)'`
    32513421              # If $name is empty we are operating on a -L argument.
    32523422              if test "$name" != "" && test "$name" -ne "0"; then
     
    32853455            # the situation: Compile a separate program for each library.
    32863456            for i in $deplibs; do
    3287               name="`expr $i : '-l\(.*\)'`"
     3457              name=`expr $i : '-l\(.*\)'`
    32883458              # If $name is empty we are operating on a -L argument.
    32893459              if test "$name" != "" && test "$name" != "0"; then
     
    33373507          file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
    33383508          for a_deplib in $deplibs; do
    3339             name="`expr $a_deplib : '-l\(.*\)'`"
     3509            name=`expr $a_deplib : '-l\(.*\)'`
    33403510            # If $name is empty we are operating on a -L argument.
    33413511            if test "$name" != "" && test  "$name" != "0"; then
     
    34063576          match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
    34073577          for a_deplib in $deplibs; do
    3408             name="`expr $a_deplib : '-l\(.*\)'`"
     3578            name=`expr $a_deplib : '-l\(.*\)'`
    34093579            # If $name is empty we are operating on a -L argument.
    34103580            if test -n "$name" && test "$name" != "0"; then
     
    36473817                $show "using reloadable object file for export list..."
    36483818                skipped_export=:
     3819                # Break out early, otherwise skipped_export may be
     3820                # set to false by a later but shorter cmd.
     3821                break
    36493822              fi
    36503823            done
     
    36803853          else
    36813854            gentop="$output_objdir/${outputname}x"
    3682             $show "${rm}r $gentop"
    3683             $run ${rm}r "$gentop"
    3684             $show "$mkdir $gentop"
    3685             $run $mkdir "$gentop"
    3686             status=$?
    3687             if test "$status" -ne 0 && test ! -d "$gentop"; then
    3688               exit $status
    3689             fi
    36903855            generated="$generated $gentop"
    36913856
    3692             for xlib in $convenience; do
    3693               # Extract the objects.
    3694               case $xlib in
    3695               [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    3696               *) xabs=`pwd`"/$xlib" ;;
    3697               esac
    3698               xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    3699               xdir="$gentop/$xlib"
    3700 
    3701               $show "${rm}r $xdir"
    3702               $run ${rm}r "$xdir"
    3703               $show "$mkdir $xdir"
    3704               $run $mkdir "$xdir"
    3705               status=$?
    3706               if test "$status" -ne 0 && test ! -d "$xdir"; then
    3707                 exit $status
    3708               fi
    3709               # We will extract separately just the conflicting names and we will no
    3710               # longer touch any unique names. It is faster to leave these extract
    3711               # automatically by $AR in one run.
    3712               $show "(cd $xdir && $AR x $xabs)"
    3713               $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    3714               if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    3715                 :
    3716               else
    3717                 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    3718                 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    3719                 $AR t "$xabs" | sort | uniq -cd | while read -r count name
    3720                 do
    3721                   i=1
    3722                   while test "$i" -le "$count"
    3723                   do
    3724                    # Put our $i before any first dot (extension)
    3725                    # Never overwrite any file
    3726                    name_to="$name"
    3727                    while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    3728                    do
    3729                      name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    3730                    done
    3731                    $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    3732                    $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    3733                    i=`expr $i + 1`
    3734                   done
    3735                 done
    3736               fi
    3737 
    3738               libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    3739             done
    3740           fi
    3741         fi
    3742 
     3857            func_extract_archives $gentop $convenience
     3858            libobjs="$libobjs $func_extract_archives_result"
     3859          fi
     3860        fi
     3861       
    37433862        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
    37443863          eval flag=\"$thread_safe_flag_spec\"
     
    37703889        fi
    37713890
    3772         if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
     3891        if test "X$skipped_export" != "X:" &&
     3892           len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    37733893           test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
    37743894          :
     
    37893909          fi
    37903910          save_output=$output
     3911          output_la=`$echo "X$output" | $Xsed -e "$basename"`
    37913912
    37923913          # Clear the reloadable object creation command queue and
     
    37983919          last_robj=
    37993920          k=1
    3800           output=$output_objdir/$save_output-${k}.$objext
     3921          output=$output_objdir/$output_la-${k}.$objext
    38013922          # Loop over the list of objects to be linked.
    38023923          for obj in $save_libobjs
     
    38043925            eval test_cmds=\"$reload_cmds $objlist $last_robj\"
    38053926            if test "X$objlist" = X ||
    3806                { len=`expr "X$test_cmds" : ".*"` &&
     3927               { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    38073928                 test "$len" -le "$max_cmd_len"; }; then
    38083929              objlist="$objlist $obj"
     
    38183939                eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
    38193940              fi
    3820               last_robj=$output_objdir/$save_output-${k}.$objext
     3941              last_robj=$output_objdir/$output_la-${k}.$objext
    38213942              k=`expr $k + 1`
    3822               output=$output_objdir/$save_output-${k}.$objext
     3943              output=$output_objdir/$output_la-${k}.$objext
    38233944              objlist=$obj
    38243945              len=1
     
    38403961          fi
    38413962
    3842           # Set up a command to remove the reloadale object files
     3963          # Set up a command to remove the reloadable object files
    38433964          # after they are used.
    38443965          i=0
     
    38463967          do
    38473968            i=`expr $i + 1`
    3848             delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
     3969            delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
    38493970          done
    38503971
     
    38944015          eval cmd=\"$cmd\"
    38954016          $show "$cmd"
    3896           $run eval "$cmd" || exit $?
     4017          $run eval "$cmd" || {
     4018            lt_exit=$?
     4019
     4020            # Restore the uninstalled library and exit
     4021            if test "$mode" = relink; then
     4022              $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
     4023            fi
     4024
     4025            exit $lt_exit
     4026          }
    38974027        done
    38984028        IFS="$save_ifs"
     
    39014031        if test "$mode" = relink; then
    39024032          $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
     4033
     4034          if test -n "$convenience"; then
     4035            if test -z "$whole_archive_flag_spec"; then
     4036              $show "${rm}r $gentop"
     4037              $run ${rm}r "$gentop"
     4038            fi
     4039          fi
     4040
    39034041          exit $EXIT_SUCCESS
    39044042        fi
     
    39784116        else
    39794117          gentop="$output_objdir/${obj}x"
    3980           $show "${rm}r $gentop"
    3981           $run ${rm}r "$gentop"
    3982           $show "$mkdir $gentop"
    3983           $run $mkdir "$gentop"
    3984           status=$?
    3985           if test "$status" -ne 0 && test ! -d "$gentop"; then
    3986             exit $status
    3987           fi
    39884118          generated="$generated $gentop"
    39894119
    3990           for xlib in $convenience; do
    3991             # Extract the objects.
    3992             case $xlib in
    3993             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    3994             *) xabs=`pwd`"/$xlib" ;;
    3995             esac
    3996             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    3997             xdir="$gentop/$xlib"
    3998 
    3999             $show "${rm}r $xdir"
    4000             $run ${rm}r "$xdir"
    4001             $show "$mkdir $xdir"
    4002             $run $mkdir "$xdir"
    4003             status=$?
    4004             if test "$status" -ne 0 && test ! -d "$xdir"; then
    4005               exit $status
    4006             fi
    4007             # We will extract separately just the conflicting names and we will no
    4008             # longer touch any unique names. It is faster to leave these extract
    4009             # automatically by $AR in one run.
    4010             $show "(cd $xdir && $AR x $xabs)"
    4011             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    4012             if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    4013               :
    4014             else
    4015               $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    4016               $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    4017               $AR t "$xabs" | sort | uniq -cd | while read -r count name
    4018               do
    4019                 i=1
    4020                 while test "$i" -le "$count"
    4021                 do
    4022                  # Put our $i before any first dot (extension)
    4023                  # Never overwrite any file
    4024                  name_to="$name"
    4025                  while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    4026                  do
    4027                    name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    4028                  done
    4029                  $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    4030                  $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    4031                  i=`expr $i + 1`
    4032                 done
    4033               done
    4034             fi
    4035 
    4036             reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    4037           done
     4120          func_extract_archives $gentop $convenience
     4121          reload_conv_objs="$reload_objs $func_extract_archives_result"
    40384122        fi
    40394123      fi
     
    42974381            # Prepare the list of exported symbols
    42984382            if test -z "$export_symbols"; then
    4299               export_symbols="$output_objdir/$output.exp"
     4383              export_symbols="$output_objdir/$outputname.exp"
    43004384              $run $rm $export_symbols
    4301               $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
     4385              $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
    43024386            else
    4303               $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
    4304               $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
     4387              $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
     4388              $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
    43054389              $run eval 'mv "$nlist"T "$nlist"'
    43064390            fi
     
    43544438
    43554439/* The mapping between symbol names and symbols. */
     4440"
     4441
     4442            case $host in
     4443            *cygwin* | *mingw* )
     4444          $echo >> "$output_objdir/$dlsyms" "\
     4445/* DATA imports from DLLs on WIN32 can't be const, because
     4446   runtime relocations are performed -- see ld's documentation
     4447   on pseudo-relocs */
     4448struct {
     4449"
     4450              ;;
     4451            * )
     4452          $echo >> "$output_objdir/$dlsyms" "\
    43564453const struct {
     4454"
     4455              ;;
     4456            esac
     4457
     4458
     4459          $echo >> "$output_objdir/$dlsyms" "\
    43574460  const char *name;
    43584461  lt_ptr address;
     
    45834686        case $host in
    45844687          *cygwin* | *mingw* )
    4585             cwrappersource=`$echo ${objdir}/lt-${output}.c`
     4688            cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
    45864689            cwrapper=`$echo ${output}.exe`
    45874690            $rm $cwrappersource $cwrapper
     
    46824785
    46834786            cat >> $cwrappersource <<"EOF"
     4787  return 127;
    46844788}
    46854789
     
    48164920# The HP-UX ksh and POSIX shell print the target directory to stdout
    48174921# if CDPATH is set.
    4818 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
     4922(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    48194923
    48204924relink_command=\"$relink_command\"
     
    49455049        *-*-mingw | *-*-os2*)
    49465050          $echo >> $output "\
    4947       exec \$progdir\\\\\$program \${1+\"\$@\"}
     5051      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
    49485052"
    49495053          ;;
     
    49515055        *)
    49525056          $echo >> $output "\
    4953       exec \$progdir/\$program \${1+\"\$@\"}
     5057      exec \"\$progdir/\$program\" \${1+\"\$@\"}
    49545058"
    49555059          ;;
     
    49615065  else
    49625066    # The program doesn't exist.
    4963     \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
     5067    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
    49645068    \$echo \"This script is just a wrapper for \$program.\" 1>&2
    49655069    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
     
    49935097      if test -n "$addlibs"; then
    49945098        gentop="$output_objdir/${outputname}x"
    4995         $show "${rm}r $gentop"
    4996         $run ${rm}r "$gentop"
    4997         $show "$mkdir $gentop"
    4998         $run $mkdir "$gentop"
    4999         status=$?
    5000         if test "$status" -ne 0 && test ! -d "$gentop"; then
    5001           exit $status
    5002         fi
    50035099        generated="$generated $gentop"
    50045100
    5005         # Add in members from convenience archives.
    5006         for xlib in $addlibs; do
    5007           # Extract the objects.
    5008           case $xlib in
    5009           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    5010           *) xabs=`pwd`"/$xlib" ;;
    5011           esac
    5012           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    5013           xdir="$gentop/$xlib"
    5014 
    5015           $show "${rm}r $xdir"
    5016           $run ${rm}r "$xdir"
    5017           $show "$mkdir $xdir"
    5018           $run $mkdir "$xdir"
    5019           status=$?
    5020           if test "$status" -ne 0 && test ! -d "$xdir"; then
    5021             exit $status
    5022           fi
    5023           # We will extract separately just the conflicting names and we will no
    5024           # longer touch any unique names. It is faster to leave these extract
    5025           # automatically by $AR in one run.
    5026           $show "(cd $xdir && $AR x $xabs)"
    5027           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    5028           if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    5029             :
    5030           else
    5031             $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    5032             $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    5033             $AR t "$xabs" | sort | uniq -cd | while read -r count name
    5034             do
    5035               i=1
    5036               while test "$i" -le "$count"
    5037               do
    5038                # Put our $i before any first dot (extension)
    5039                # Never overwrite any file
    5040                name_to="$name"
    5041                while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    5042                do
    5043                  name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    5044                done
    5045                $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    5046                $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    5047                i=`expr $i + 1`
    5048               done
    5049             done
    5050           fi
    5051 
    5052           oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
    5053         done
     5101        func_extract_archives $gentop $addlibs
     5102        oldobjs="$oldobjs $func_extract_archives_result"
    50545103      fi
    50555104
     
    50585107       cmds=$old_archive_from_new_cmds
    50595108      else
     5109        # POSIX demands no paths to be encoded in archives.  We have
     5110        # to avoid creating archives with duplicate basenames if we
     5111        # might have to extract them afterwards, e.g., when creating a
     5112        # static archive out of a convenience library, or when linking
     5113        # the entirety of a libtool archive into another (currently
     5114        # not supported by libtool).
     5115        if (for obj in $oldobjs
     5116            do
     5117              $echo "X$obj" | $Xsed -e 's%^.*/%%'
     5118            done | sort | sort -uc >/dev/null 2>&1); then
     5119          :
     5120        else
     5121          $echo "copying selected object files to avoid basename conflicts..."
     5122
     5123          if test -z "$gentop"; then
     5124            gentop="$output_objdir/${outputname}x"
     5125            generated="$generated $gentop"
     5126
     5127            $show "${rm}r $gentop"
     5128            $run ${rm}r "$gentop"
     5129            $show "$mkdir $gentop"
     5130            $run $mkdir "$gentop"
     5131            status=$?
     5132            if test "$status" -ne 0 && test ! -d "$gentop"; then
     5133              exit $status
     5134            fi
     5135          fi
     5136
     5137          save_oldobjs=$oldobjs
     5138          oldobjs=
     5139          counter=1
     5140          for obj in $save_oldobjs
     5141          do
     5142            objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
     5143            case " $oldobjs " in
     5144            " ") oldobjs=$obj ;;
     5145            *[\ /]"$objbase "*)
     5146              while :; do
     5147                # Make sure we don't pick an alternate name that also
     5148                # overlaps.
     5149                newobj=lt$counter-$objbase
     5150                counter=`expr $counter + 1`
     5151                case " $oldobjs " in
     5152                *[\ /]"$newobj "*) ;;
     5153                *) if test ! -f "$gentop/$newobj"; then break; fi ;;
     5154                esac
     5155              done
     5156              $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
     5157              $run ln "$obj" "$gentop/$newobj" ||
     5158              $run cp "$obj" "$gentop/$newobj"
     5159              oldobjs="$oldobjs $gentop/$newobj"
     5160              ;;
     5161            *) oldobjs="$oldobjs $obj" ;;
     5162            esac
     5163          done
     5164        fi
     5165
    50605166        eval cmds=\"$old_archive_cmds\"
    50615167
     
    50715177          concat_cmds=
    50725178          save_oldobjs=$oldobjs
    5073           # GNU ar 2.10+ was changed to match POSIX; thus no paths are
    5074           # encoded into archives.  This makes 'ar r' malfunction in
    5075           # this piecewise linking case whenever conflicting object
    5076           # names appear in distinct ar calls; check, warn and compensate.
    5077             if (for obj in $save_oldobjs
    5078             do
    5079               $echo "X$obj" | $Xsed -e 's%^.*/%%'
    5080             done | sort | sort -uc >/dev/null 2>&1); then
    5081             :
    5082           else
    5083             $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
    5084             $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
    5085             AR_FLAGS=cq
    5086           fi
     5179
    50875180          # Is there a better way of finding the last object in the list?
    50885181          for obj in $save_oldobjs
     
    50955188            objlist="$objlist $obj"
    50965189            eval test_cmds=\"$old_archive_cmds\"
    5097             if len=`expr "X$test_cmds" : ".*"` &&
     5190            if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    50985191               test "$len" -le "$max_cmd_len"; then
    50995192              :
     
    52925385    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
    52935386       # Allow the use of GNU shtool's install command.
    5294        $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
     5387       $echo "X$nonopt" | grep shtool > /dev/null; then
    52955388      # Aesthetically quote it.
    52965389      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
    52975390      case $arg in
    5298       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*)
     5391      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    52995392        arg="\"$arg\""
    53005393        ;;
     
    53055398    else
    53065399      install_prog=
    5307       arg="$nonopt"
     5400      arg=$nonopt
    53085401    fi
    53095402
     
    53125405    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    53135406    case $arg in
    5314     *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*)
     5407    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
    53155408      arg="\"$arg\""
    53165409      ;;
     
    53305423      if test -n "$dest"; then
    53315424        files="$files $dest"
    5332         dest="$arg"
     5425        dest=$arg
    53335426        continue
    53345427      fi
     
    53365429      case $arg in
    53375430      -d) isdir=yes ;;
    5338       -f) prev="-f" ;;
    5339       -g) prev="-g" ;;
    5340       -m) prev="-m" ;;
    5341       -o) prev="-o" ;;
     5431      -f)
     5432        case " $install_prog " in
     5433        *[\\\ /]cp\ *) ;;
     5434        *) prev=$arg ;;
     5435        esac
     5436        ;;
     5437      -g | -m | -o) prev=$arg ;;
    53425438      -s)
    53435439        stripme=" -s"
    53445440        continue
    53455441        ;;
    5346       -*) ;;
    5347 
     5442      -*)
     5443        ;;
    53485444      *)
    53495445        # If the previous option needed an argument, then skip it.
     
    53515447          prev=
    53525448        else
    5353           dest="$arg"
     5449          dest=$arg
    53545450          continue
    53555451        fi
     
    53605456      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    53615457      case $arg in
    5362       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*)
     5458      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    53635459        arg="\"$arg\""
    53645460        ;;
     
    55295625          if test "$#" -gt 0; then
    55305626            # Delete the old symlinks, and create new ones.
     5627            # Try `ln -sf' first, because the `ln' binary might depend on
     5628            # the symlink we replace!  Solaris /bin/ln does not understand -f,
     5629            # so we also need to try rm && ln -s.
    55315630            for linkname
    55325631            do
    55335632              if test "$linkname" != "$realname"; then
    5534                 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
    5535                 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
     5633                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
     5634                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
    55365635              fi
    55375636            done
     
    55465645            eval cmd=\"$cmd\"
    55475646            $show "$cmd"
    5548             $run eval "$cmd" || exit $?
     5647            $run eval "$cmd" || {
     5648              lt_exit=$?
     5649
     5650              # Restore the uninstalled library and exit
     5651              if test "$mode" = relink; then
     5652                $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
     5653              fi
     5654
     5655              exit $lt_exit
     5656            }
    55495657          done
    55505658          IFS="$save_ifs"
     
    56405748          relink_command=
    56415749
    5642           # To insure that "foo" is sourced, and not "foo.exe",
    5643           # finese the cygwin/MSYS system by explicitly sourcing "foo."
    5644           # which disallows the automatic-append-.exe behavior.
    5645           case $build in
    5646           *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
    5647           *) wrapperdot=${wrapper} ;;
    5648           esac
     5750          # Note that it is not necessary on cygwin/mingw to append a dot to
     5751          # foo even if both foo and FILE.exe exist: automatic-append-.exe
     5752          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
     5753          # `FILE.' does not work on cygwin managed mounts.
     5754          #
    56495755          # If there is no directory component, then add one.
    5650           case $file in
    5651           */* | *\\*) . ${wrapperdot} ;;
    5652           *) . ./${wrapperdot} ;;
     5756          case $wrapper in
     5757          */* | *\\*) . ${wrapper} ;;
     5758          *) . ./${wrapper} ;;
    56535759          esac
    56545760
     
    56785784
    56795785          relink_command=
    5680           # To insure that "foo" is sourced, and not "foo.exe",
    5681           # finese the cygwin/MSYS system by explicitly sourcing "foo."
    5682           # which disallows the automatic-append-.exe behavior.
    5683           case $build in
    5684           *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
    5685           *) wrapperdot=${wrapper} ;;
    5686           esac
     5786          # Note that it is not necessary on cygwin/mingw to append a dot to
     5787          # foo even if both foo and FILE.exe exist: automatic-append-.exe
     5788          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
     5789          # `FILE.' does not work on cygwin managed mounts.
     5790          #
    56875791          # If there is no directory component, then add one.
    5688           case $file in
    5689           */* | *\\*) . ${wrapperdot} ;;
    5690           *) . ./${wrapperdot} ;;
     5792          case $wrapper in
     5793          */* | *\\*) . ${wrapper} ;;
     5794          *) . ./${wrapper} ;;
    56915795          esac
    56925796
     
    57295833
    57305834        # remove .exe since cygwin /usr/bin/install will append another
    5731         # one anyways
     5835        # one anyway 
    57325836        case $install_prog,$host in
    57335837        */usr/bin/install*,*cygwin*)
     
    63996503$echo "Try \`$modename --help' for more information about other modes."
    64006504
    6401 exit $EXIT_SUCCESS
     6505exit $?
    64026506
    64036507# The TAGs below are defined such that we never get into a situation
Note: See TracChangeset for help on using the changeset viewer.