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

📄 ltmain.sh

📁 linux下的用户文件系统fuse-2.5.2
💻 SH
📖 第 1 页 / 共 5 页
字号:
	continue	;;      -o) prev=output ;;      -precious-files-regex)	prev=precious_regex	continue	;;      -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 $EXIT_FAILURE	  ;;	esac	case "$xrpath " in	*" $dir "*) ;;	*) xrpath="$xrpath $dir" ;;	esac	continue	;;      -shared)	# The effects of -shared are defined in a previous loop.	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	;;      -version-number)	prev=vinfo	vinfo_number=yes	continue	;;      -Wc,*)	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`	arg=	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=	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	;;      -XCClinker)	prev=xcclinker	continue	;;      -framework)        prev=framework	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 | $GREP "^# 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 $EXIT_FAILURE	  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 $EXIT_FAILURE	  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 # arg      # 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 # argument parsing loop    if test -n "$prev"; then      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2      $echo "$help" 1>&2      exit $EXIT_FAILURE    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 $EXIT_FAILURE      ;;    *.$libext) linkmode=oldlib ;;    *.lo | *.$objext) linkmode=obj ;;    *.la) linkmode=lib ;;    *) linkmode=prog ;; # Anything else should be a program.    esac    case $host in    *cygwin* | *mingw* | *pw32*)      # don't eliminate duplications in $postdeps and $predeps      duplicate_compiler_generated_deps=yes      ;;    *)      duplicate_compiler_generated_deps=$duplicate_deps      ;;    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      if test "X$duplicate_deps" = "Xyes" ; then	case "$libs " in	*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;	esac      fi      libs="$libs $deplib"    done    if test "$linkmode" = lib; then      libs="$predeps $libs $compiler_lib_search_path $postdeps"      # Compute libraries that are listed more than once in $predeps      # $postdeps and mark them as special (i.e., whose duplicates are      # not to be eliminated).      pre_post_deps=      if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then	for pre_post_dep in $predeps $postdeps; do	  case "$pre_post_deps " in	  *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;	  esac	  pre_post_deps="$pre_post_deps $pre_post_dep"	done      fi      pre_post_deps=    fi    deplibs=    newdependency_libs=    newlib_search_path=    need_relink=no # whether we're linking any uninstalled libtool libraries    notinst_deplibs= # not-installed libtool libraries    notinst_path= # paths that contain not-installed libtool libraries    case $linkmode in    lib)	passes="conv link"	for file in $dlfiles $dlprefiles; do	  case $file in	  *.la) ;;	  *)	    $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2	    exit $EXIT_FAILURE	    ;;	  esac	done	;;    prog)	compile_deplibs=	finalize_deplibs=	alldeplibs=no	newdlfiles=	newdlprefiles=	passes="conv scan dlopen dlpreopen link"	;;    *)  passes="conv"	;;    esac    for pass in $passes; do      if test "$linkmode,$pass" = "lib,link" ||	 test "$linkmode,$pass" = "prog,scan"; then	libs="$deplibs"	deplibs=      fi      if test "$linkmode" = prog; then	case $pass in	dlopen) libs="$dlfiles" ;;	dlpreopen) libs="$dlprefiles" ;;	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;	esac      fi      if test "$pass" = dlopen; then	# Collect dlpreopened libraries	save_deplibs="$deplibs"	deplibs=      fi      for deplib in $libs; do	lib=	found=no	case $deplib in	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)	  if test "$linkmode,$pass" = "prog,link"; then	    compile_deplibs="$deplib $compile_deplibs"	    finalize_deplibs="$deplib $finalize_deplibs"	  else	    deplibs="$deplib $deplibs"	  fi	  continue	  ;;	-l*)	  if test "$linkmode" != lib && test "$linkmode" != prog; then	    $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2	    continue	  fi	  if test "$pass" = conv; then	    deplibs="$deplib $deplibs"	    continue	  fi	  name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`	  for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do	    for search_ext in .la $std_shrext .so .a; do	      # Search the libtool library	      lib="$searchdir/lib${name}${search_ext}"	      if test -f "$lib"; then		if test "$search_ext" = ".la"; then		  found=yes		else		  found=no		fi		break 2	      fi	    done	  done	  if test "$found" != yes; then	    # deplib doesn't seem to be a libtool library	    if test "$linkmode,$pass" = "prog,link"; then	      compile_deplibs="$deplib $compile_deplibs"	      finalize_deplibs="$deplib $finalize_deplibs"	    else	      deplibs="$deplib $deplibs"	      test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"	    fi	    continue	  else # deplib is a libtool library	    # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,	    # We need to do some special things here, and not later.	    if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then	      case " $predeps $postdeps " in	      *" $deplib "*)		if (${SED} -e '2q' $lib |                    $GREP "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then		  library_names=		  old_library=		  case $lib in		  */* | *\\*) . $lib ;;		  *) . ./$lib ;;		  esac		  for l in $old_library $library_names; do		    ll="$l"		  done		  if test "X$ll" = "X$old_library" ; then # only static version available		    found=no		    ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`		    test "X$ladir" = "X$lib" && ladir="."		    lib=$ladir/$old_library		    if test "$linkmode,$pass" = "prog,link"; then

⌨️ 快捷键说明

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