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

📄 ltmain.sh

📁 Bookcase 是一个用于KDE的个人的书籍管理。它使用XML文件存储格式
💻 SH
📖 第 1 页 / 共 5 页
字号:
	        # Extract subdirectory from the argument.	        xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`	        if test "X$xdir" = "X$arg"; then	          xdir=	        else	          xdir="$xdir/"	        fi                if test "$pic_object" != none; then                  # Prepend the subdirectory the object is found in.	          pic_object="$xdir$pic_object"	          if test "$prev" = dlfiles; then	            if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then	              dlfiles="$dlfiles $pic_object"	              prev=	              continue	            else	              # If libtool objects are unsupported, then we need to preload.	              prev=dlprefiles	            fi	          fi	          # CHECK ME:  I think I busted this.  -Ossama                  if test "$prev" = dlprefiles; then	            # Preload the old-style object.	            dlprefiles="$dlprefiles $pic_object"	            prev=                  fi                  # A PIC object.	          libobjs="$libobjs $pic_object"	          arg="$pic_object"                fi                # Non-PIC object.                if test "$non_pic_object" != none; then                  # Prepend the subdirectory the object is found in.	          non_pic_object="$xdir$non_pic_object"                  # A standard non-PIC object                  non_pic_objects="$non_pic_objects $non_pic_object"                  if test -z "$pic_object" || test "$pic_object" = none ; then                    arg="$non_pic_object"                  fi                fi              else                # Only an error if not doing a dry-run.                if test -z "$run"; then                  $echo "$modename: \`$arg' is not a valid libtool object" 1>&2                  exit 1                else                  # Dry-run case.	          # Extract subdirectory from the argument.	          xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`	          if test "X$xdir" = "X$arg"; then	            xdir=	          else	            xdir="$xdir/"	          fi                  pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`                  non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`	          libobjs="$libobjs $pic_object"                  non_pic_objects="$non_pic_objects $non_pic_object"                fi	      fi	    done	  else	    $echo "$modename: link input file \`$save_arg' does not exist"	    exit 1	  fi          arg=$save_arg	  prev=	  continue	  ;;	rpath | xrpath)	  # We need an absolute path.	  case $arg in	  [\\/]* | [A-Za-z]:[\\/]*) ;;	  *)	    $echo "$modename: only absolute run-paths are allowed" 1>&2	    exit 1	    ;;	  esac	  if test "$prev" = rpath; then	    case "$rpath " in	    *" $arg "*) ;;	    *) rpath="$rpath $arg" ;;	    esac	  else	    case "$xrpath " in	    *" $arg "*) ;;	    *) xrpath="$xrpath $arg" ;;	    esac	  fi	  prev=	  continue	  ;;	xcompiler)	  compiler_flags="$compiler_flags $qarg"	  prev=	  compile_command="$compile_command $qarg"	  finalize_command="$finalize_command $qarg"	  continue	  ;;	xlinker)	  linker_flags="$linker_flags $qarg"	  compiler_flags="$compiler_flags $wl$qarg"	  prev=	  compile_command="$compile_command $wl$qarg"	  finalize_command="$finalize_command $wl$qarg"	  continue	  ;;	*)	  eval "$prev=\"\$arg\""	  prev=	  continue	  ;;	esac      fi      prevarg="$arg"      case $arg in      -all-static)	if test -n "$link_static_flag"; then	  compile_command="$compile_command $link_static_flag"	  finalize_command="$finalize_command $link_static_flag"	fi	continue	;;      -allow-undefined)	# FIXME: remove this flag sometime in the future.	$echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2	continue	;;      -avoid-version)	avoid_version=yes	continue	;;      -dlopen)	prev=dlfiles	continue	;;      -dlpreopen)	prev=dlprefiles	continue	;;      -export-dynamic)	export_dynamic=yes	continue	;;      -export-symbols | -export-symbols-regex)	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then	  $echo "$modename: not more than one -exported-symbols argument allowed"	  exit 1	fi	if test "X$arg" = "X-export-symbols"; then	  prev=expsyms	else	  prev=expsyms_regex	fi	continue	;;      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*      # so, if we see these flags be careful not to treat them like -L      -L[A-Z][A-Z]*:*)	case $with_gcc/$host in	no/*-*-irix*)	  compile_command="$compile_command $arg"	  finalize_command="$finalize_command $arg"	  ;;	esac	continue	;;             -L*)	dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`	# We need an absolute path.	case $dir in	[\\/]* | [A-Za-z]:[\\/]*) ;;	*)	  absdir=`cd "$dir" && pwd`	  if test -z "$absdir"; then	    $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2	    exit 1	  fi	  dir="$absdir"	  ;;	esac	case "$deplibs " in	*" -L$dir "*) ;;	*)	  deplibs="$deplibs -L$dir"	  lib_search_path="$lib_search_path $dir"	  ;;	esac	case $host in	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)	  case :$dllsearchpath: in	  *":$dir:"*) ;;	  *) dllsearchpath="$dllsearchpath:$dir";;	  esac	  ;;	esac	continue	;;      -l*)	if test "$arg" = "-lc"; then	  case $host in	  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)	    # These systems don't actually have c library (as such)	    continue	    ;;	  *-*-rhapsody* | *-*-darwin1.[012])	    # Rhapsody C library is in the System framework	    deplibs="$deplibs -framework System"	    continue	    ;;	  esac	elif test "$arg" = "-lm"; then	  case $host in	  *-*-cygwin* | *-*-pw32* | *-*-beos*)	    # These systems don't actually have math library (as such)	    continue	    ;;	  *-*-rhapsody* | *-*-darwin1.[012])	    # Rhapsody math library is in the System framework	    deplibs="$deplibs -framework System"	    continue	    ;;	  esac	fi	deplibs="$deplibs $arg"	continue	;;      -module)	module=yes	continue	;;      -no-fast-install)	fast_install=no	continue	;;      -no-install)	case $host in	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)	  # The PATH hackery in wrapper scripts is required on Windows	  # in order for the loader to find any dlls it needs.	  $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2	  $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2	  fast_install=no	  ;;	*)	  no_install=yes	  ;;	esac	continue	;;      -no-undefined)	allow_undefined=no	continue	;;      -objectlist)	prev=objectlist	continue	;;      -o) prev=output ;;      -release)	prev=release	continue	;;      -rpath)	prev=rpath	continue	;;      -R)	prev=xrpath	continue	;;      -R*)	dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`	# We need an absolute path.	case $dir in	[\\/]* | [A-Za-z]:[\\/]*) ;;	*)	  $echo "$modename: only absolute run-paths are allowed" 1>&2	  exit 1	  ;;	esac	case "$xrpath " in	*" $dir "*) ;;	*) xrpath="$xrpath $dir" ;;	esac	continue	;;      -static)        # The effects of -static are defined in a previous loop.	# We used to do the same as -all-static on platforms that	# didn't have a PIC flag, but the assumption that the effects	# would be equivalent was wrong.  It would break on at least	# Digital Unix and AIX.	continue	;;      -thread-safe)	thread_safe=yes	continue	;;      -version-info)	prev=vinfo	continue	;;      -Wc,*)	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`	arg=	IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=','	for flag in $args; do	  IFS="$save_ifs"	  case $flag in	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")	    flag="\"$flag\""	    ;;	  esac	  arg="$arg $wl$flag"	  compiler_flags="$compiler_flags $flag"	done	IFS="$save_ifs"	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`	;;      -Wl,*)	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`	arg=	IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=','	for flag in $args; do	  IFS="$save_ifs"	  case $flag in	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")	    flag="\"$flag\""	    ;;	  esac	  arg="$arg $wl$flag"	  compiler_flags="$compiler_flags $wl$flag"	  linker_flags="$linker_flags $flag"	done	IFS="$save_ifs"	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`	;;      -Xcompiler)	prev=xcompiler	continue	;;      -Xlinker)	prev=xlinker	continue	;;      # Some other compiler flag.      -* | +*)	# Unknown arguments in both finalize_command and compile_command need	# to be aesthetically quoted because they are evaled later.	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`	case $arg in	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")	  arg="\"$arg\""	  ;;	esac	add_flags="$add_flags $arg"	;;      *.$objext)	# A standard object.	objs="$objs $arg"	;;      *.lo)	# A libtool-controlled object.	# Check to see that this really is a libtool object.	if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then          pic_object=          non_pic_object=          # Read the .lo file          # If there is no directory component, then add one.          case $arg in          */* | *\\*) . $arg ;;          *) . ./$arg ;;          esac          if test -z "$pic_object" || \             test -z "$non_pic_object" ||             test "$pic_object" = none && \             test "$non_pic_object" = none; then            $echo "$modename: cannot find name of object for \`$arg'" 1>&2            exit 1          fi	  # Extract subdirectory from the argument.	  xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`	  if test "X$xdir" = "X$arg"; then	    xdir=	  else	    xdir="$xdir/"	  fi          if test "$pic_object" != none; then            # Prepend the subdirectory the object is found in.	    pic_object="$xdir$pic_object"	    if test "$prev" = dlfiles; then	      if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then	        dlfiles="$dlfiles $pic_object"	        prev=	        continue	      else	        # If libtool objects are unsupported, then we need to preload.	        prev=dlprefiles	      fi	    fi	    # CHECK ME:  I think I busted this.  -Ossama            if test "$prev" = dlprefiles; then	      # Preload the old-style object.	      dlprefiles="$dlprefiles $pic_object"	      prev=            fi            # A PIC object.	    libobjs="$libobjs $pic_object"	    arg="$pic_object"          fi          # Non-PIC object.          if test "$non_pic_object" != none; then            # Prepend the subdirectory the object is found in.	    non_pic_object="$xdir$non_pic_object"            # A standard non-PIC object            non_pic_objects="$non_pic_objects $non_pic_object"            if test -z "$pic_object" || test "$pic_object" = none ; then              arg="$non_pic_object"            fi          fi        else          # Only an error if not doing a dry-run.          if test -z "$run"; then            $echo "$modename: \`$arg' is not a valid libtool object" 1>&2            exit 1          else            # Dry-run case.	    # Extract subdirectory from the argument.	    xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`	    if test "X$xdir" = "X$arg"; then	      xdir=	    else	      xdir="$xdir/"	    fi            pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`            non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`	    libobjs="$libobjs $pic_object"            non_pic_objects="$non_pic_objects $non_pic_object"          fi	fi

⌨️ 快捷键说明

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