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

📄 ltmain.sh

📁 查看局域网的信息,类似网上邻居的功能,例如查看哪台计算机在线等
💻 SH
📖 第 1 页 / 共 5 页
字号:
      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	;;      -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* | *-*-os2*)	  case ":$dllsearchpath:" in	  *":$dir:"*) ;;	  *) dllsearchpath="$dllsearchpath:$dir";;	  esac	  ;;	esac	continue	;;      -l*)	if test "$arg" = "-lc"; then	  case "$host" in	  *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)	    # These systems don't actually have c library (as such)	    continue	    ;;	  esac	elif test "$arg" = "-lm"; then	  case "$host" in	  *-*-cygwin* | *-*-beos*)	    # These systems don't actually have math library (as such)	    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* | *-*-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	  ;;	*-*-rhapsody*)	  # rhapsody is a little odd...	  deplibs="$deplibs -framework System"	  ;;	*)	  no_install=yes	  ;;	esac	continue	;;      -no-undefined)	allow_undefined=no	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)	# If we have no pic_flag, then this is the same as -all-static.	if test -z "$pic_flag" && test -n "$link_static_flag"; then	  compile_command="$compile_command $link_static_flag"	  finalize_command="$finalize_command $link_static_flag"	fi	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	;;      *.$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	;;      *.$libext)	# An archive.	deplibs="$deplibs $arg"	old_deplibs="$old_deplibs $arg"	continue	;;      *.la)	# A libtool-controlled library.	if test "$prev" = dlfiles; then	  # This library was specified with -dlopen.	  dlfiles="$dlfiles $arg"	  prev=	elif test "$prev" = dlprefiles; then	  # The library was specified with -dlpreopen.	  dlprefiles="$dlprefiles $arg"	  prev=	else	  deplibs="$deplibs $arg"	fi	continue	;;      # Some other compiler argument.      *)	# 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	;;      esac      # Now actually substitute the argument into the commands.      if test -n "$arg"; then	compile_command="$compile_command $arg"	finalize_command="$finalize_command $arg"      fi    done    if test -n "$prev"; then      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2      $echo "$help" 1>&2      exit 1    fi    # Infer tagged configuration to use if any are available and    # if one wasn't chosen via the "--tag" command line option.    # Only attempt this if the compiler in the base link    # command doesn't match the default compiler.    if test -n "$available_tags" && test -z "$tagname"; then      case $base_compile in      "$CC "*) ;;      # Blanks in the command may have been stripped by the calling shell,      # but not from the CC environment variable when ltconfig was run.      "`$echo X$CC | $Xsed` "*) ;;      *)        for z in $available_tags; do          if grep "^### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then	    # Evaluate the configuration.	    eval "`sed -n -e '/^### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"            case $base_compile in	    "$CC "*)              # The compiler in $compile_command matches              # the one in the tagged configuration.              # Assume this is the tagged configuration we want.              tagname=$z              break	      ;;	    "`$echo X$CC | $Xsed` "*)	      tagname=$z	      break	      ;;	    esac          fi        done        # If $tagname still isn't set, then no tagged configuration        # was found and let the user know that the "--tag" command        # line option must be used.        if test -z "$tagname"; then          echo "$modename: unable to infer tagged configuration"          echo "$modename: specify a tag with \`--tag'" 1>&2	  exit 1#       else#         echo "$modename: using $tagname tagged configuration"        fi	;;      esac    fi    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then      eval arg=\"$export_dynamic_flag_spec\"      compile_command="$compile_command $arg"      finalize_command="$finalize_command $arg"    fi    oldlibs=    # calculate the name of the file, without its directory    outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`    libobjs_save="$libobjs"    if test -n "$shlibpath_var"; then      # get the directories listed in $shlibpath_var      eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`    else      shlib_search_path=    fi    eval sys_lib_search_path=\"$sys_lib_search_path_spec\"    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"    output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`    if test "X$output_objdir" = "X$output"; then      output_objdir="$objdir"    else      output_objdir="$output_objdir/$objdir"    fi    # Create the object directory.    if test ! -d $output_objdir; then      $show "$mkdir $output_objdir"      $run $mkdir $output_objdir      status=$?      if test $status -ne 0 && test ! -d $output_objdir; then	exit $status      fi    fi    # Determine the type of output    case "$output" in    "")      $echo "$modename: you must specify an output file" 1>&2      $echo "$help" 1>&2      exit 1      ;;    *.$libext) linkmode=oldlib ;;    *.lo | *.$objext) linkmode=obj ;;    *.la) linkmode=lib ;;    *) linkmode=prog ;; # Anything else should be a program.    esac    specialdeplibs=    libs=    # Find all interdependent deplibs by searching for libraries    # that are linked more than once (e.g. -la -lb -la)    for deplib in $deplibs; do      case "$libs " in      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;      esac      libs="$libs $deplib"    done    if test $linkmode = lib; then

⌨️ 快捷键说明

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