⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ltmain.sh

📁 优化后的JIF/JPEG压缩文件解码器
💻 SH
📖 第 1 页 / 共 5 页
字号:
            IFS="$save_ifs"            $show "$cmd"            $run eval "$cmd" || exit $?          done          IFS="$save_ifs"        fi        # Install the pseudo-library for information purposes.        name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`        $show "$install_prog $file $destdir/$name"        $run eval "$install_prog $file $destdir/$name" || exit $?        # Maybe install the static library, too.        test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"        ;;      *.lo)        # Install (i.e. copy) a libtool object.        # Figure out destination file name, if it wasn't already specified.        if test -n "$destname"; then          destfile="$destdir/$destname"        else          destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`          destfile="$destdir/$destfile"        fi        # Deduce the name of the destination old-style object file.        case "$destfile" in        *.lo)          staticdest=`$echo "X$destfile" | $Xsed -e 's/\.lo$/\.o/'`          ;;        *.o)          staticdest="$destfile"          destfile=          ;;        *)          $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2          $echo "$help" 1>&2          exit 1          ;;        esac        # Install the libtool object if requested.        if test -n "$destfile"; then          $show "$install_prog $file $destfile"          $run eval "$install_prog $file $destfile" || exit $?        fi        # Install the old object if enabled.        if test "$build_old_libs" = yes; then          # Deduce the name of the old-style object file.          staticobj=`$echo "X$file" | $Xsed -e 's/\.lo$/\.o/'`          $show "$install_prog $staticobj $staticdest"          $run eval "$install_prog \$staticobj \$staticdest" || exit $?        fi        exit 0        ;;      *)        # Do a test to see if this is really a libtool program.        if (sed -e '4q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then          link_against_libtool_libs=          finalize_command=          # If there is no directory component, then add one.          case "$file" in          */* | *\\*) . $file ;;          *) . ./$file ;;          esac          # Check the variables that should have been set.          if test -z "$link_against_libtool_libs" || test -z "$finalize_command"; then            $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2            exit 1          fi          finalize=yes          for lib in $link_against_libtool_libs; do            # Check to see that each library is installed.            libdir=            if test -f "$lib"; then              # If there is no directory component, then add one.              case "$lib" in              */* | *\\*) . $lib ;;              *) . ./$lib ;;              esac            fi            libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"            if test -z "$libdir"; then              $echo "$modename: warning: \`$lib' contains no -rpath information" 1>&2            elif test -f "$libfile"; then :            else              $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2              finalize=no            fi          done          if test "$hardcode_action" = relink; then            if test "$finalize" = yes; then              $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2              $show "$finalize_command"              if $run eval "$finalize_command"; then :              else                $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2                continue              fi              file="$objdir/$file"T            else              $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2            fi          else            # Install the binary that we compiled earlier.	    file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`          fi        fi        $show "$install_prog$stripme $file $dest"        $run eval "$install_prog\$stripme \$file \$dest" || exit $?        ;;      esac    done    for file in $staticlibs; do      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`      # Set up the ranlib parameters.      oldlib="$destdir/$name"      $show "$install_prog $file $oldlib"      $run eval "$install_prog \$file \$oldlib" || exit $?      # Do each command in the postinstall commands.      eval cmds=\"$old_postinstall_cmds\"      IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=';'      for cmd in $cmds; do        IFS="$save_ifs"        $show "$cmd"        $run eval "$cmd" || exit $?      done      IFS="$save_ifs"    done    if test -n "$future_libdirs"; then      $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2    fi    if test -n "$current_libdirs"; then      # Maybe just do a dry run.      test -n "$run" && current_libdirs=" -n$current_libdirs"      exec $SHELL $0 --finish$current_libdirs      exit 1    fi    exit 0    ;;  # libtool finish mode  finish)    modename="$modename: finish"    libdirs="$nonopt"    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then      for dir      do        libdirs="$libdirs $dir"      done      for libdir in $libdirs; do	if test -n "$finish_cmds"; then	  # Do each command in the finish commands.	  eval cmds=\"$finish_cmds\"          IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=';'          for cmd in $cmds; do            IFS="$save_ifs"            $show "$cmd"            $run eval "$cmd"          done          IFS="$save_ifs"	fi	if test -n "$finish_eval"; then	  # Do the single finish_eval.	  eval cmds=\"$finish_eval\"	  $run eval "$cmds"	fi      done    fi    echo "------------------------------------------------------------------------------"    echo "Libraries have been installed in:"    for libdir in $libdirs; do      echo "   $libdir"    done    echo    echo "To link against installed libraries in a given directory, LIBDIR,"    echo "you must use the \`-LLIBDIR' flag during linking."    echo    echo " You will also need to do one of the following:"    if test -n "$shlibpath_var"; then      echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"      echo "     during execution"    fi    if test -n "$runpath_var"; then      echo "   - add LIBDIR to the \`$runpath_var' environment variable"      echo "     during linking"    fi    if test -n "$hardcode_libdir_flag_spec"; then      libdir=LIBDIR      eval flag=\"$hardcode_libdir_flag_spec\"      echo "   - use the \`$flag' linker flag"    fi    if test -f /etc/ld.so.conf; then      echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"    fi    echo    echo "See any operating system documentation about shared libraries for"    echo "more information, such as the ld(1) and ld.so(8) manual pages."    echo "------------------------------------------------------------------------------"    exit 0    ;;  # libtool execute mode  execute)    modename="$modename: execute"    # The first argument is the command name.    cmd="$nonopt"    if test -z "$cmd"; then      $echo "$modename: you must specify a COMMAND" 1>&2      $echo "$help"      exit 1    fi    # Handle -dlopen flags immediately.    for file in $execute_dlfiles; do      if test -f "$file"; then :      else	$echo "$modename: \`$file' is not a file" 1>&2	$echo "$help" 1>&2	exit 1      fi      dir=      case "$file" in      *.la)        # Check to see that this really is a libtool archive.        if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then :        else          $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2          $echo "$help" 1>&2          exit 1        fi	# Read the libtool library.	dlname=	library_names=        # If there is no directory component, then add one.	case "$file" in	*/* | *\\*) . $file ;;        *) . ./$file ;;	esac	# Skip this library if it cannot be dlopened.	if test -z "$dlname"; then	  # Warn if it was a shared library.	  test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"	  continue	fi	dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`	test "X$dir" = "X$file" && dir=.	if test -f "$dir/$objdir/$dlname"; then	  dir="$dir/$objdir"	else	  $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2	  exit 1	fi	;;      *.lo)	# Just add the directory containing the .lo file.	dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`	test "X$dir" = "X$file" && dir=.	;;      *)	$echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2        continue	;;      esac      # Get the absolute pathname.      absdir=`cd "$dir" && pwd`      test -n "$absdir" && dir="$absdir"      # Now add the directory to shlibpath_var.      if eval "test -z \"\$$shlibpath_var\""; then	eval "$shlibpath_var=\"\$dir\""      else	eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""      fi    done    # This variable tells wrapper scripts just to set shlibpath_var    # rather than running their programs.    libtool_execute_magic="$magic"    # Check if any of the arguments is a wrapper script.    args=    for file    do      case "$file" in      -*) ;;      *)        # Do a test to see if this is really a libtool program.        if (sed -e '4q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then	  # If there is no directory component, then add one.	  case "$file" in	  */* | *\\*) . $file ;;	  *) . ./$file ;;	  esac	  # Transform arg to wrapped name.	  file="$progdir/$program"	fi        ;;      esac      # Quote arguments (to preserve shell metacharacters).      file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`      args="$args \"$file\""    done    if test -z "$run"; then      # Export the shlibpath_var.      eval "export $shlibpath_var"      # Now actually exec the command.      eval "exec \$cmd$args"      $echo "$modename: cannot exec \$cmd$args"      exit 1    else      # Display what would be done.      eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""      $echo "export $shlibpath_var"      $echo "$cmd$args"      exit 0    fi    ;;  # libtool uninstall mode  uninstall)    modename="$modename: uninstall"    rm="$nonopt"    files=    for arg    do      case "$arg" in      -*) rm="$rm $arg" ;;      *) files="$files $arg" ;;      esac    done    if test -z "$rm"; then      $echo "$modename: you must specify an RM program" 1>&2      $echo "$help" 1>&2      exit 1    fi    for file in $files; do      dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`      test "X$dir" = "X$file" && dir=.      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`      rmfiles="$file"      case "$name" in      *.la)        # Possibly a libtool archive, so verify it.        if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then          . $dir/$name          # Delete the libtool libraries and symlinks.          for n in $library_names; do            rmfiles="$rmfiles $dir/$n"            test "X$n" = "X$dlname" && dlname=          done          test -n "$dlname" && rmfiles="$rmfiles $dir/$dlname"          test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"	  $show "$rm $rmfiles"	  $run $rm $rmfiles	  if test -n "$library_names"; then	    # Do each command in the postuninstall commands.	    eval cmds=\"$postuninstall_cmds\"	    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=';'	    for cmd in $cmds; do	      IFS="$save_ifs"	      $show "$cmd"	      $run eval "$cmd"	    done	    IFS="$save_ifs"	  fi          if test -n "$old_library"; then	    # Do each command in the old_postuninstall commands.	    eval cmds=\"$old_postuninstall_cmds\"	    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=';'	    for cmd in $cmds; do	      IFS="$save_ifs"	      $show "$cmd"	      $run eval "$cmd"	    done	    IFS="$save_ifs"	  fi          # FIXME: should reinstall the best remaining shared library.        fi        ;;      *.lo)        if test "$build_old_libs" = yes; then          oldobj=`$echo "X$name" | $Xsed -e 's/\.lo$/\.o/'`          rmfiles="$rmfiles $dir/$oldobj"        fi	$show "$rm $rmfiles"	$run $rm $rmfiles        ;;      *)      	$show "$rm $rmfiles"	$run $rm $rmfiles	;;      esac    done    exit 0    ;;  "")    $echo "$modename: you must specify a MODE" 1>&2    $echo "$generic_help" 1>&2    exit 1    ;;  esac  $echo "$modename: invalid operation mode \`$mode'" 1>&2  $echo "$generic_help" 1>&2  exit 1fi # test -z "$show_help"# We need to display help for each of the modes.case "$mode" in

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -