Legend:
- Unmodified
- Added
- Removed
-
ltmain.sh
r1 r3 2 2 # NOTE: Changing this file will not affect anything until you rerun configure. 3 3 # 4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 5 5 # Free Software Foundation, Inc. 6 6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 … … 18 18 # You should have received a copy of the GNU General Public License 19 19 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 5 9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 21 # 22 22 # As a special exception to the GNU General Public License, if you … … 44 44 PROGRAM=ltmain.sh 45 45 PACKAGE=libtool 46 VERSION=1.5.6 47 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $" 48 46 VERSION=1.5.20 47 TIMESTAMP=" (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. 51 if test -n "${ZSH_VERSION+set}" ; then 52 setopt NO_GLOB_SUBST 53 fi 49 54 50 55 # Check that we have a working $echo. … … 84 89 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' 85 90 # 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'" 91 case `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' 90 96 ;; 91 *) # Assume ASCIIbased system92 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' 94 100 ;; 95 101 esac … … 108 114 109 115 # Make sure IFS has a sensible default 110 : ${IFS=" 111 "} 116 lt_nl=' 117 ' 118 IFS=" $lt_nl" 112 119 113 120 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then … … 139 146 # Has to be a shell function in order to 'eat' the argument 140 147 # that is supplied when $file_magic_command is called. 141 func_win32_libid () { 148 func_win32_libid () 149 { 142 150 win32_libid_type="unknown" 143 151 win32_fileres=`file -L $1 2>/dev/null` … … 179 187 # command doesn't match the default compiler. 180 188 # arg is usually of the form 'gcc ...' 181 func_infer_tag () { 189 func_infer_tag () 190 { 182 191 if test -n "$available_tags" && test -z "$tagname"; then 183 192 CC_quoted= … … 236 245 fi 237 246 } 247 248 249 # func_extract_an_archive dir oldlib 250 func_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 ... 266 func_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 } 238 349 # End of Shell function definitions 239 350 ##################################### … … 306 417 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" 307 418 $echo 308 $echo "Copyright (C) 200 3Free Software Foundation, Inc."419 $echo "Copyright (C) 2005 Free Software Foundation, Inc." 309 420 $echo "This is free software; see the source for copying conditions. There is NO" 310 421 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 311 exit $ EXIT_SUCCESS422 exit $? 312 423 ;; 313 424 … … 318 429 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" 319 430 done 320 exit $ EXIT_SUCCESS431 exit $? 321 432 ;; 322 433 … … 343 454 $echo "disable static libraries" 344 455 fi 345 exit $ EXIT_SUCCESS456 exit $? 346 457 ;; 347 458 … … 400 511 if test -z "$mode"; then 401 512 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 402 $echo "*** Future versions of Libtool will require - mode=MODE be specified." 1>&2513 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 403 514 case $nonopt in 404 515 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) … … 466 577 for arg 467 578 do 468 case "$arg_mode"in579 case $arg_mode in 469 580 arg ) 470 581 # do not "continue". Instead, add this to base_compile … … 548 659 # Double-quote args containing other shell metacharacters. 549 660 # 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. 551 665 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 552 666 lastarg="\"$lastarg\"" … … 622 736 done 623 737 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." 624 746 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` 625 747 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` … … 694 816 exit $EXIT_FAILURE 695 817 fi 696 $echo $srcfile> "$lockfile"818 $echo "$srcfile" > "$lockfile" 697 819 fi 698 820 … … 700 822 eval srcfile=\"$fix_srcfile_path\" 701 823 fi 824 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` 825 case $qsrcfile in 826 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 827 qsrcfile="\"$qsrcfile\"" ;; 828 esac 702 829 703 830 $run $rm "$libobj" "${libobj}T" … … 721 848 722 849 if test "$pic_mode" != no; then 723 command="$base_compile $ srcfile $pic_flag"850 command="$base_compile $qsrcfile $pic_flag" 724 851 else 725 852 # Don't build PIC code 726 command="$base_compile $ srcfile"853 command="$base_compile $qsrcfile" 727 854 fi 728 855 … … 804 931 if test "$pic_mode" != yes; then 805 932 # Don't build PIC code 806 command="$base_compile $ srcfile"933 command="$base_compile $qsrcfile" 807 934 else 808 command="$base_compile $ srcfile $pic_flag"935 command="$base_compile $qsrcfile $pic_flag" 809 936 fi 810 937 if test "$compiler_c_o" = yes; then … … 1228 1355 continue 1229 1356 ;; 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 ;; 1230 1364 *) 1231 1365 eval "$prev=\"\$arg\"" … … 1285 1419 continue 1286 1420 ;; 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 ;; 1287 1429 1288 1430 -inst-prefix-dir) … … 1346 1488 test "X$arg" = "X-lc" && continue 1347 1489 ;; 1348 *-*-openbsd* | *-*-freebsd* )1490 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) 1349 1491 # Do not include libc due to us having libc/libc_r. 1350 1492 test "X$arg" = "X-lc" && continue … … 1357 1499 elif test "X$arg" = "X-lc_r"; then 1358 1500 case $host in 1359 *-*-openbsd* | *-*-freebsd* )1501 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) 1360 1502 # Do not include libc_r directly, use -pthread flag. 1361 1503 continue … … 1367 1509 ;; 1368 1510 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 1369 1521 -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" 1371 1525 continue 1372 1526 ;; … … 1377 1531 ;; 1378 1532 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 1386 1541 # Unknown arguments in both finalize_command and compile_command need 1387 1542 # to be aesthetically quoted because they are evaled later. … … 1839 1994 dlopen) libs="$dlfiles" ;; 1840 1995 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" ;; 1845 1997 esac 1846 1998 fi … … 1859 2011 finalize_deplibs="$deplib $finalize_deplibs" 1860 2012 else 1861 deplibs="$deplib $deplibs"2013 compiler_flags="$compiler_flags $deplib" 1862 2014 fi 1863 2015 continue … … 1978 2130 case $linkmode in 1979 2131 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 1981 2148 $echo 1982 2149 $echo "*** Warning: Trying to link with static lib archive $deplib." … … 2052 2219 installed=yes 2053 2220 shouldnotlink=no 2221 avoidtemprpath= 2222 2054 2223 2055 2224 # Read the .la file … … 2150 2319 absdir="$libdir" 2151 2320 fi 2321 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes 2152 2322 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 2157 2334 fi # $installed = yes 2158 2335 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` … … 2227 2404 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 2228 2405 # We need to hardcode the library path 2229 if test -n "$shlibpath_var" ; then2406 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then 2230 2407 # Make sure the rpath contains only unique directories. 2231 2408 case "$temp_rpath " in 2232 2409 *" $dir "*) ;; 2233 2410 *" $absdir "*) ;; 2234 *) temp_rpath="$temp_rpath $ dir" ;;2411 *) temp_rpath="$temp_rpath $absdir" ;; 2235 2412 esac 2236 2413 fi … … 2418 2595 # Try looking first in the location we're being installed to. 2419 2596 if test -n "$inst_prefix_dir"; then 2420 case "$libdir"in2597 case $libdir in 2421 2598 [\\/]*) 2422 2599 add_dir="$add_dir -L$inst_prefix_dir$libdir" … … 2491 2668 # Try looking first in the location we're being installed to. 2492 2669 if test -n "$inst_prefix_dir"; then 2493 case "$libdir"in2670 case $libdir in 2494 2671 [\\/]*) 2495 2672 add_dir="$add_dir -L$inst_prefix_dir$libdir" … … 2552 2729 fi 2553 2730 else 2554 convenience="$convenience $dir/$old_library"2555 old_convenience="$old_convenience $dir/$old_library"2556 2731 deplibs="$dir/$old_library $deplibs" 2557 2732 link_static=yes … … 2671 2846 esac 2672 2847 case " $deplibs " in 2848 *" $path "*) ;; 2849 *) deplibs="$path $deplibs" ;; 2850 esac 2851 case " $deplibs " in 2673 2852 *" $depdepl "*) ;; 2674 2853 *) deplibs="$depdepl $deplibs" ;; 2675 esac2676 case " $deplibs " in2677 *" $path "*) ;;2678 *) deplibs="$deplibs $path" ;;2679 2854 esac 2680 2855 done … … 2930 3105 revision="$number_minor" 2931 3106 ;; 2932 *)2933 $echo "$modename: unknown library version type \`$version_type'" 1>&22934 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&22935 exit $EXIT_FAILURE2936 ;;2937 3107 esac 2938 3108 ;; … … 2948 3118 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]) ;; 2949 3119 *) 2950 $echo "$modename: CURRENT \`$current' is nota nonnegative integer" 1>&23120 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 2951 3121 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 2952 3122 exit $EXIT_FAILURE … … 2957 3127 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]) ;; 2958 3128 *) 2959 $echo "$modename: REVISION \`$revision' is nota nonnegative integer" 1>&23129 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 2960 3130 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 2961 3131 exit $EXIT_FAILURE … … 2966 3136 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]) ;; 2967 3137 *) 2968 $echo "$modename: AGE \`$age' is nota nonnegative integer" 1>&23138 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 2969 3139 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 2970 3140 exit $EXIT_FAILURE … … 2992 3162 # Darwin ld doesn't like 0 for these options... 2993 3163 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" 2995 3165 ;; 2996 3166 … … 3198 3368 # Don't link with libc until the a.out ld.so is fixed. 3199 3369 ;; 3200 *-*-openbsd* | *-*-freebsd* )3370 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) 3201 3371 # Do not include libc due to us having libc/libc_r. 3202 3372 test "X$arg" = "X-lc" && continue … … 3248 3418 ldd_output=`ldd conftest` 3249 3419 for i in $deplibs; do 3250 name= "`expr $i : '-l\(.*\)'`"3420 name=`expr $i : '-l\(.*\)'` 3251 3421 # If $name is empty we are operating on a -L argument. 3252 3422 if test "$name" != "" && test "$name" -ne "0"; then … … 3285 3455 # the situation: Compile a separate program for each library. 3286 3456 for i in $deplibs; do 3287 name= "`expr $i : '-l\(.*\)'`"3457 name=`expr $i : '-l\(.*\)'` 3288 3458 # If $name is empty we are operating on a -L argument. 3289 3459 if test "$name" != "" && test "$name" != "0"; then … … 3337 3507 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 3338 3508 for a_deplib in $deplibs; do 3339 name= "`expr $a_deplib : '-l\(.*\)'`"3509 name=`expr $a_deplib : '-l\(.*\)'` 3340 3510 # If $name is empty we are operating on a -L argument. 3341 3511 if test "$name" != "" && test "$name" != "0"; then … … 3406 3576 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 3407 3577 for a_deplib in $deplibs; do 3408 name= "`expr $a_deplib : '-l\(.*\)'`"3578 name=`expr $a_deplib : '-l\(.*\)'` 3409 3579 # If $name is empty we are operating on a -L argument. 3410 3580 if test -n "$name" && test "$name" != "0"; then … … 3647 3817 $show "using reloadable object file for export list..." 3648 3818 skipped_export=: 3819 # Break out early, otherwise skipped_export may be 3820 # set to false by a later but shorter cmd. 3821 break 3649 3822 fi 3650 3823 done … … 3680 3853 else 3681 3854 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"; then3688 exit $status3689 fi3690 3855 generated="$generated $gentop" 3691 3856 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 3743 3862 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then 3744 3863 eval flag=\"$thread_safe_flag_spec\" … … 3770 3889 fi 3771 3890 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` && 3773 3893 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then 3774 3894 : … … 3789 3909 fi 3790 3910 save_output=$output 3911 output_la=`$echo "X$output" | $Xsed -e "$basename"` 3791 3912 3792 3913 # Clear the reloadable object creation command queue and … … 3798 3919 last_robj= 3799 3920 k=1 3800 output=$output_objdir/$ save_output-${k}.$objext3921 output=$output_objdir/$output_la-${k}.$objext 3801 3922 # Loop over the list of objects to be linked. 3802 3923 for obj in $save_libobjs … … 3804 3925 eval test_cmds=\"$reload_cmds $objlist $last_robj\" 3805 3926 if test "X$objlist" = X || 3806 { len=`expr "X$test_cmds" : ".*" ` &&3927 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && 3807 3928 test "$len" -le "$max_cmd_len"; }; then 3808 3929 objlist="$objlist $obj" … … 3818 3939 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" 3819 3940 fi 3820 last_robj=$output_objdir/$ save_output-${k}.$objext3941 last_robj=$output_objdir/$output_la-${k}.$objext 3821 3942 k=`expr $k + 1` 3822 output=$output_objdir/$ save_output-${k}.$objext3943 output=$output_objdir/$output_la-${k}.$objext 3823 3944 objlist=$obj 3824 3945 len=1 … … 3840 3961 fi 3841 3962 3842 # Set up a command to remove the reloada le object files3963 # Set up a command to remove the reloadable object files 3843 3964 # after they are used. 3844 3965 i=0 … … 3846 3967 do 3847 3968 i=`expr $i + 1` 3848 delfiles="$delfiles $output_objdir/$ save_output-${i}.$objext"3969 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" 3849 3970 done 3850 3971 … … 3894 4015 eval cmd=\"$cmd\" 3895 4016 $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 } 3897 4027 done 3898 4028 IFS="$save_ifs" … … 3901 4031 if test "$mode" = relink; then 3902 4032 $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 3903 4041 exit $EXIT_SUCCESS 3904 4042 fi … … 3978 4116 else 3979 4117 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"; then3986 exit $status3987 fi3988 4118 generated="$generated $gentop" 3989 4119 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" 4038 4122 fi 4039 4123 fi … … 4297 4381 # Prepare the list of exported symbols 4298 4382 if test -z "$export_symbols"; then 4299 export_symbols="$output_objdir/$output .exp"4383 export_symbols="$output_objdir/$outputname.exp" 4300 4384 $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"' 4302 4386 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' 4305 4389 $run eval 'mv "$nlist"T "$nlist"' 4306 4390 fi … … 4354 4438 4355 4439 /* 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 */ 4448 struct { 4449 " 4450 ;; 4451 * ) 4452 $echo >> "$output_objdir/$dlsyms" "\ 4356 4453 const struct { 4454 " 4455 ;; 4456 esac 4457 4458 4459 $echo >> "$output_objdir/$dlsyms" "\ 4357 4460 const char *name; 4358 4461 lt_ptr address; … … 4583 4686 case $host in 4584 4687 *cygwin* | *mingw* ) 4585 cwrappersource=`$echo ${objdir}/lt-${output }.c`4688 cwrappersource=`$echo ${objdir}/lt-${outputname}.c` 4586 4689 cwrapper=`$echo ${output}.exe` 4587 4690 $rm $cwrappersource $cwrapper … … 4682 4785 4683 4786 cat >> $cwrappersource <<"EOF" 4787 return 127; 4684 4788 } 4685 4789 … … 4816 4920 # The HP-UX ksh and POSIX shell print the target directory to stdout 4817 4921 # if CDPATH is set. 4818 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi 4922 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4819 4923 4820 4924 relink_command=\"$relink_command\" … … 4945 5049 *-*-mingw | *-*-os2*) 4946 5050 $echo >> $output "\ 4947 exec \ $progdir\\\\\$program\${1+\"\$@\"}5051 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} 4948 5052 " 4949 5053 ;; … … 4951 5055 *) 4952 5056 $echo >> $output "\ 4953 exec \ $progdir/\$program\${1+\"\$@\"}5057 exec \"\$progdir/\$program\" \${1+\"\$@\"} 4954 5058 " 4955 5059 ;; … … 4961 5065 else 4962 5066 # The program doesn't exist. 4963 \$echo \"\$0: error: \ $progdir/\$programdoes not exist\" 1>&25067 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 4964 5068 \$echo \"This script is just a wrapper for \$program.\" 1>&2 4965 5069 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 … … 4993 5097 if test -n "$addlibs"; then 4994 5098 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"; then5001 exit $status5002 fi5003 5099 generated="$generated $gentop" 5004 5100 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" 5054 5103 fi 5055 5104 … … 5058 5107 cmds=$old_archive_from_new_cmds 5059 5108 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 5060 5166 eval cmds=\"$old_archive_cmds\" 5061 5167 … … 5071 5177 concat_cmds= 5072 5178 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 5087 5180 # Is there a better way of finding the last object in the list? 5088 5181 for obj in $save_oldobjs … … 5095 5188 objlist="$objlist $obj" 5096 5189 eval test_cmds=\"$old_archive_cmds\" 5097 if len=`expr "X$test_cmds" : ".*" ` &&5190 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && 5098 5191 test "$len" -le "$max_cmd_len"; then 5099 5192 : … … 5292 5385 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || 5293 5386 # Allow the use of GNU shtool's install command. 5294 $echo "X$nonopt" | $Xsed |grep shtool > /dev/null; then5387 $echo "X$nonopt" | grep shtool > /dev/null; then 5295 5388 # Aesthetically quote it. 5296 5389 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` 5297 5390 case $arg in 5298 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]* )5391 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 5299 5392 arg="\"$arg\"" 5300 5393 ;; … … 5305 5398 else 5306 5399 install_prog= 5307 arg= "$nonopt"5400 arg=$nonopt 5308 5401 fi 5309 5402 … … 5312 5405 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 5313 5406 case $arg in 5314 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]* )5407 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 5315 5408 arg="\"$arg\"" 5316 5409 ;; … … 5330 5423 if test -n "$dest"; then 5331 5424 files="$files $dest" 5332 dest= "$arg"5425 dest=$arg 5333 5426 continue 5334 5427 fi … … 5336 5429 case $arg in 5337 5430 -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 ;; 5342 5438 -s) 5343 5439 stripme=" -s" 5344 5440 continue 5345 5441 ;; 5346 -*) ;;5347 5442 -*) 5443 ;; 5348 5444 *) 5349 5445 # If the previous option needed an argument, then skip it. … … 5351 5447 prev= 5352 5448 else 5353 dest= "$arg"5449 dest=$arg 5354 5450 continue 5355 5451 fi … … 5360 5456 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 5361 5457 case $arg in 5362 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]* )5458 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 5363 5459 arg="\"$arg\"" 5364 5460 ;; … … 5529 5625 if test "$#" -gt 0; then 5530 5626 # 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. 5531 5630 for linkname 5532 5631 do 5533 5632 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; }; })" 5536 5635 fi 5537 5636 done … … 5546 5645 eval cmd=\"$cmd\" 5547 5646 $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 } 5549 5657 done 5550 5658 IFS="$save_ifs" … … 5640 5748 relink_command= 5641 5749 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 # 5649 5755 # If there is no directory component, then add one. 5650 case $ filein5651 */* | *\\*) . ${wrapper dot} ;;5652 *) . ./${wrapper dot} ;;5756 case $wrapper in 5757 */* | *\\*) . ${wrapper} ;; 5758 *) . ./${wrapper} ;; 5653 5759 esac 5654 5760 … … 5678 5784 5679 5785 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 # 5687 5791 # If there is no directory component, then add one. 5688 case $ filein5689 */* | *\\*) . ${wrapper dot} ;;5690 *) . ./${wrapper dot} ;;5792 case $wrapper in 5793 */* | *\\*) . ${wrapper} ;; 5794 *) . ./${wrapper} ;; 5691 5795 esac 5692 5796 … … 5729 5833 5730 5834 # remove .exe since cygwin /usr/bin/install will append another 5731 # one anyway s5835 # one anyway 5732 5836 case $install_prog,$host in 5733 5837 */usr/bin/install*,*cygwin*) … … 6399 6503 $echo "Try \`$modename --help' for more information about other modes." 6400 6504 6401 exit $ EXIT_SUCCESS6505 exit $? 6402 6506 6403 6507 # The TAGs below are defined such that we never get into a situation
Note: See TracChangeset
for help on using the changeset viewer.