/[libtool]/libtool/ltmain.in
ViewVC logotype

Diff of /libtool/ltmain.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.357 by pogma, Sat Nov 22 13:58:35 2003 UTC revision 1.358 by pogma, Sat Nov 22 14:03:35 2003 UTC
# Line 2378  EOF Line 2378  EOF
2378              else              else
2379                $show "extracting exported symbol list from \`$soname'"                $show "extracting exported symbol list from \`$soname'"
2380                save_ifs="$IFS"; IFS='~'                save_ifs="$IFS"; IFS='~'
2381                eval cmds=\"$extract_expsyms_cmds\"                cmds=$extract_expsyms_cmds
2382                for cmd in $cmds; do                for cmd in $cmds; do
2383                  IFS="$save_ifs"                  IFS="$save_ifs"
2384                    eval cmd=\"$cmd\"
2385                  $show "$cmd"                  $show "$cmd"
2386                  $run eval "$cmd" || exit $?                  $run eval "$cmd" || exit $?
2387                done                done
# Line 2391  EOF Line 2392  EOF
2392              if test -f "$output_objdir/$newlib"; then :; else              if test -f "$output_objdir/$newlib"; then :; else
2393                $show "generating import library for \`$soname'"                $show "generating import library for \`$soname'"
2394                save_ifs="$IFS"; IFS='~'                save_ifs="$IFS"; IFS='~'
2395                eval cmds=\"$old_archive_from_expsyms_cmds\"                cmds=$old_archive_from_expsyms_cmds
2396                for cmd in $cmds; do                for cmd in $cmds; do
2397                  IFS="$save_ifs"                  IFS="$save_ifs"
2398                    eval cmd=\"$cmd\"
2399                  $show "$cmd"                  $show "$cmd"
2400                  $run eval "$cmd" || exit $?                  $run eval "$cmd" || exit $?
2401                done                done
# Line 3666  EOF Line 3668  EOF
3668              $show "generating symbol list for \`$libname.la'"              $show "generating symbol list for \`$libname.la'"
3669              export_symbols="$output_objdir/$libname.exp"              export_symbols="$output_objdir/$libname.exp"
3670              $run $rm $export_symbols              $run $rm $export_symbols
3671              eval cmds=\"$export_symbols_cmds\"              cmds=$export_symbols_cmds
3672              save_ifs="$IFS"; IFS='~'              save_ifs="$IFS"; IFS='~'
3673              for cmd in $cmds; do              for cmd in $cmds; do
3674                IFS="$save_ifs"                IFS="$save_ifs"
3675                  eval cmd=\"$cmd\"
3676                if len=`expr "X$cmd" : ".*"` &&                if len=`expr "X$cmd" : ".*"` &&
3677                 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then                 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3678                  $show "$cmd"                  $show "$cmd"
# Line 3786  EOF Line 3789  EOF
3789          # Do each of the archive commands.          # Do each of the archive commands.
3790          if test "$module" = yes && test -n "$module_cmds" ; then          if test "$module" = yes && test -n "$module_cmds" ; then
3791            if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then            if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3792              eval cmds=\"$module_expsym_cmds\"              eval test_cmds=\"$module_expsym_cmds\"
3793                cmds=$module_expsym_cmds
3794            else            else
3795              eval cmds=\"$module_cmds\"              eval test_cmds=\"$module_cmds\"
3796                cmds=$module_cmds
3797            fi            fi
3798          else          else
3799          if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then          if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3800            eval cmds=\"$archive_expsym_cmds\"            eval test_cmds=\"$archive_expsym_cmds\"
3801              cmds=$archive_expsym_cmds
3802          else          else
3803            eval cmds=\"$archive_cmds\"            eval test_cmds=\"$archive_cmds\"
3804              cmds=$archive_cmds
3805            fi            fi
3806          fi          fi
3807    
3808          if test "X$skipped_export" != "X:" && len=`expr "X$cmds" : ".*"` &&          if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
3809             test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then             test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3810            :            :
3811          else          else
# Line 3883  EOF Line 3890  EOF
3890            save_ifs="$IFS"; IFS='~'            save_ifs="$IFS"; IFS='~'
3891            for cmd in $concat_cmds; do            for cmd in $concat_cmds; do
3892              IFS="$save_ifs"              IFS="$save_ifs"
3893                eval cmd=\"$cmd\"
3894              $show "$cmd"              $show "$cmd"
3895              $run eval "$cmd" || exit $?              $run eval "$cmd" || exit $?
3896            done            done
# Line 3901  EOF Line 3909  EOF
3909            # Do each of the archive commands.            # Do each of the archive commands.
3910            if test "$module" = yes && test -n "$module_cmds" ; then            if test "$module" = yes && test -n "$module_cmds" ; then
3911              if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then              if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3912                eval cmds=\"$module_expsym_cmds\"                cmds=$module_expsym_cmds
3913              else              else
3914                eval cmds=\"$module_cmds\"                cmds=$module_cmds
3915              fi              fi
3916            else            else
3917            if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then            if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3918              eval cmds=\"$archive_expsym_cmds\"              cmds=$archive_expsym_cmds
3919            else            else
3920              eval cmds=\"$archive_cmds\"              cmds=$archive_cmds
3921              fi              fi
3922            fi            fi
3923    
3924            # Append the command to remove the reloadable object files            # Append the command to remove the reloadable object files
3925            # to the just-reset $cmds.            # to the just-reset $cmds.
3926            eval cmds=\"\$cmds~$rm $delfiles\"            eval cmds=\"\$cmds~\$rm $delfiles\"
3927          fi          fi
3928          save_ifs="$IFS"; IFS='~'          save_ifs="$IFS"; IFS='~'
3929          for cmd in $cmds; do          for cmd in $cmds; do
3930            IFS="$save_ifs"            IFS="$save_ifs"
3931              eval cmd=\"$cmd\"
3932            $show "$cmd"            $show "$cmd"
3933            $run eval "$cmd" || exit $?            $run eval "$cmd" || exit $?
3934          done          done
# Line 4070  EOF Line 4079  EOF
4079        reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test        reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
4080    
4081        output="$obj"        output="$obj"
4082        eval cmds=\"$reload_cmds\"        cmds=$reload_cmds
4083        save_ifs="$IFS"; IFS='~'        save_ifs="$IFS"; IFS='~'
4084        for cmd in $cmds; do        for cmd in $cmds; do
4085          IFS="$save_ifs"          IFS="$save_ifs"
4086            eval cmd=\"$cmd\"
4087          $show "$cmd"          $show "$cmd"
4088          $run eval "$cmd" || exit $?          $run eval "$cmd" || exit $?
4089        done        done
# Line 4106  EOF Line 4116  EOF
4116          # Only do commands if we really have different PIC objects.          # Only do commands if we really have different PIC objects.
4117          reload_objs="$libobjs $reload_conv_objs"          reload_objs="$libobjs $reload_conv_objs"
4118          output="$libobj"          output="$libobj"
4119          eval cmds=\"$reload_cmds\"          cmds=$reload_cmds
4120          save_ifs="$IFS"; IFS='~'          save_ifs="$IFS"; IFS='~'
4121          for cmd in $cmds; do          for cmd in $cmds; do
4122            IFS="$save_ifs"            IFS="$save_ifs"
4123              eval cmd=\"$cmd\"
4124            $show "$cmd"            $show "$cmd"
4125            $run eval "$cmd" || exit $?            $run eval "$cmd" || exit $?
4126          done          done
# Line 5208  fi\ Line 5219  fi\
5219    
5220        # Do each command in the archive commands.        # Do each command in the archive commands.
5221        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5222          eval cmds=\"$old_archive_from_new_cmds\"         cmds=$old_archive_from_new_cmds
5223        else        else
5224          eval cmds=\"$old_archive_cmds\"          eval cmds=\"$old_archive_cmds\"
5225    
5226          if len=`expr "X$cmds" : ".*"` &&          if len=`expr "X$cmds" : ".*"` &&
5227               test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then               test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5228            :            cmds=$old_archive_cmds
5229          else          else
5230            # the command line is too long to link in one step, link in parts            # the command line is too long to link in one step, link in parts
5231            $echo "using piecewise archive linking..."            $echo "using piecewise archive linking..."
# Line 5266  fi\ Line 5277  fi\
5277            if test "X$oldobjs" = "X" ; then            if test "X$oldobjs" = "X" ; then
5278              eval cmds=\"\$concat_cmds\"              eval cmds=\"\$concat_cmds\"
5279            else            else
5280              eval cmds=\"\$concat_cmds~$old_archive_cmds\"              eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5281            fi            fi
5282          fi          fi
5283        fi        fi
5284        save_ifs="$IFS"; IFS='~'        save_ifs="$IFS"; IFS='~'
5285        for cmd in $cmds; do        for cmd in $cmds; do
5286            eval cmd=\"$cmd\"
5287          IFS="$save_ifs"          IFS="$save_ifs"
5288          $show "$cmd"          $show "$cmd"
5289          $run eval "$cmd" || exit $?          $run eval "$cmd" || exit $?
# Line 5689  relink_command=\"$relink_command\"" Line 5701  relink_command=\"$relink_command\""
5701    
5702            # Do each command in the postinstall commands.            # Do each command in the postinstall commands.
5703            lib="$destdir/$realname"            lib="$destdir/$realname"
5704            eval cmds=\"$postinstall_cmds\"            cmds=$postinstall_cmds
5705            save_ifs="$IFS"; IFS='~'            save_ifs="$IFS"; IFS='~'
5706            for cmd in $cmds; do            for cmd in $cmds; do
5707              IFS="$save_ifs"              IFS="$save_ifs"
5708                eval cmd=\"$cmd\"
5709              $show "$cmd"              $show "$cmd"
5710              $run eval "$cmd" || exit $?              $run eval "$cmd" || exit $?
5711            done            done
# Line 5911  relink_command=\"$relink_command\"" Line 5924  relink_command=\"$relink_command\""
5924        fi        fi
5925    
5926        # Do each command in the postinstall commands.        # Do each command in the postinstall commands.
5927        eval cmds=\"$old_postinstall_cmds\"        cmds=$old_postinstall_cmds
5928        save_ifs="$IFS"; IFS='~'        save_ifs="$IFS"; IFS='~'
5929        for cmd in $cmds; do        for cmd in $cmds; do
5930          IFS="$save_ifs"          IFS="$save_ifs"
5931            eval cmd=\"$cmd\"
5932          $show "$cmd"          $show "$cmd"
5933          $run eval "$cmd" || exit $?          $run eval "$cmd" || exit $?
5934        done        done
# Line 5949  relink_command=\"$relink_command\"" Line 5963  relink_command=\"$relink_command\""
5963        for libdir in $libdirs; do        for libdir in $libdirs; do
5964          if test -n "$finish_cmds"; then          if test -n "$finish_cmds"; then
5965            # Do each command in the finish commands.            # Do each command in the finish commands.
5966            eval cmds=\"$finish_cmds\"            cmds=$finish_cmds
5967            save_ifs="$IFS"; IFS='~'            save_ifs="$IFS"; IFS='~'
5968            for cmd in $cmds; do            for cmd in $cmds; do
5969              IFS="$save_ifs"              IFS="$save_ifs"
5970                eval cmd=\"$cmd\"
5971              $show "$cmd"              $show "$cmd"
5972              $run eval "$cmd" || admincmds="$admincmds              $run eval "$cmd" || admincmds="$admincmds
5973         $cmd"         $cmd"
# Line 6226  relink_command=\"$relink_command\"" Line 6241  relink_command=\"$relink_command\""
6241            if test "$mode" = uninstall; then            if test "$mode" = uninstall; then
6242              if test -n "$library_names"; then              if test -n "$library_names"; then
6243                # Do each command in the postuninstall commands.                # Do each command in the postuninstall commands.
6244                eval cmds=\"$postuninstall_cmds\"                cmds=$postuninstall_cmds
6245                save_ifs="$IFS"; IFS='~'                save_ifs="$IFS"; IFS='~'
6246                for cmd in $cmds; do                for cmd in $cmds; do
6247                  IFS="$save_ifs"                  IFS="$save_ifs"
6248                    eval cmd=\"$cmd\"
6249                  $show "$cmd"                  $show "$cmd"
6250                  $run eval "$cmd"                  $run eval "$cmd"
6251                  if test "$?" -ne 0 && test "$rmforce" != yes; then                  if test "$?" -ne 0 && test "$rmforce" != yes; then
# Line 6241  relink_command=\"$relink_command\"" Line 6257  relink_command=\"$relink_command\""
6257    
6258              if test -n "$old_library"; then              if test -n "$old_library"; then
6259                # Do each command in the old_postuninstall commands.                # Do each command in the old_postuninstall commands.
6260                eval cmds=\"$old_postuninstall_cmds\"                cmds=$old_postuninstall_cmds
6261                save_ifs="$IFS"; IFS='~'                save_ifs="$IFS"; IFS='~'
6262                for cmd in $cmds; do                for cmd in $cmds; do
6263                  IFS="$save_ifs"                  IFS="$save_ifs"
6264                    eval cmd=\"$cmd\"
6265                  $show "$cmd"                  $show "$cmd"
6266                  $run eval "$cmd"                  $run eval "$cmd"
6267                  if test "$?" -ne 0 && test "$rmforce" != yes; then                  if test "$?" -ne 0 && test "$rmforce" != yes; then

Legend:
Removed from v.1.357  
changed lines
  Added in v.1.358

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26