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

📄 ltmain.sh

📁 CORBA上的libIDL源代码
💻 SH
📖 第 1 页 / 共 5 页
字号:
      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	;;      -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: warning: cannot determine absolute directory name of \`$dir'" 1>&2	    $echo "$modename: passing it literally to the linker, although it might fail" 1>&2	    absdir="$dir"	  fi	  dir="$absdir"	  ;;	esac	case " $deplibs " in	*" $arg "*) ;;	*) deplibs="$deplibs $arg";;	esac	case " $lib_search_path " in	*" $dir "*) ;;	*) lib_search_path="$lib_search_path $dir";;	esac	case "$host" in	*-*-cygwin* | *-*-mingw* | *-*-os2*)	  dllsearchdir=`cd "$dir" && pwd || echo "$dir"`	  case ":$dllsearchpath:" in	  ::) dllsearchpath="$dllsearchdir";;	  *":$dllsearchdir:"*) ;;	  *) dllsearchpath="$dllsearchpath:$dllsearchdir";;	  esac	  ;;	esac	;;      -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"	;;      -module)	module=yes	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	;;      # 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	;;      *.o | *.obj | *.a | *.lib)	# A standard object.	objs="$objs $arg"	;;      *.lo)	# A library object.	if test "$prev" = dlfiles; then	  dlfiles="$dlfiles $arg"	  if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then	    prev=	    continue	  else	    # If libtool objects are unsupported, then we need to preload.	    prev=dlprefiles	  fi	fi	if test "$prev" = dlprefiles; then	  # Preload the old-style object.	  dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`	  prev=	fi	libobjs="$libobjs $arg"	;;      *.la)	# A libtool-controlled library.	dlname=	libdir=	library_names=	old_library=	# Check to see that this really is a libtool archive.	if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :	else	  $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2	  exit 1	fi	# If the library was installed with an old release of libtool,	# it will not redefine variable installed.	installed=yes	# Read the .la file	# If there is no directory component, then add one.	case "$arg" in	*/* | *\\*) . $arg ;;	*) . ./$arg ;;	esac	# Get the name of the library we link against.	linklib=	for l in $old_library $library_names; do	  linklib="$l"	done	if test -z "$linklib"; then	  $echo "$modename: cannot find name of link library for \`$arg'" 1>&2	  exit 1	fi	# Find the relevant object directory and library name.	name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`	if test "X$installed" = Xyes; then	  dir="$libdir"	else	  dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`	  if test "X$dir" = "X$arg"; then	    dir="$objdir"	  else	    dir="$dir/$objdir"	  fi	fi	if test -n "$dependency_libs"; then	  # Extract -R from dependency_libs	  temp_deplibs=	  for deplib in $dependency_libs; do	    case "$deplib" in	    -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`		 case " $rpath $xrpath " in		 *" $temp_xrpath "*) ;;		 *) xrpath="$xrpath $temp_xrpath";;		 esac;;	    -L*) case "$compile_command $temp_deplibs " in		 *" $deplib "*) ;;		 *) temp_deplibs="$temp_deplibs $deplib";;		 esac;;	    *) temp_deplibs="$temp_deplibs $deplib";;	    esac	  done	  dependency_libs="$temp_deplibs"	fi	if test -z "$libdir"; then	  # It is a libtool convenience library, so add in its objects.	  convenience="$convenience $dir/$old_library"	  old_convenience="$old_convenience $dir/$old_library"	  deplibs="$deplibs$dependency_libs"	  compile_command="$compile_command $dir/$old_library$dependency_libs"	  finalize_command="$finalize_command $dir/$old_library$dependency_libs"	  continue	fi	# This library was specified with -dlopen.	if test "$prev" = dlfiles; then	  dlfiles="$dlfiles $arg"	  if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then	    # If there is no dlname, no dlopen support or we're linking statically,	    # we need to preload.	    prev=dlprefiles	  else	    # We should not create a dependency on this library, but we	    # may need any libraries it requires.	    compile_command="$compile_command$dependency_libs"	    finalize_command="$finalize_command$dependency_libs"	    prev=	    continue	  fi	fi	# The library was specified with -dlpreopen.	if test "$prev" = dlprefiles; then	  # Prefer using a static library (so that no silly _DYNAMIC symbols	  # are required to link).	  if test -n "$old_library"; then	    dlprefiles="$dlprefiles $dir/$old_library"	  else	    dlprefiles="$dlprefiles $dir/$linklib"	  fi	  prev=	fi	if test -n "$library_names" &&	   { test "$prefer_static_libs" = no || test -z "$old_library"; }; then	  link_against_libtool_libs="$link_against_libtool_libs $arg"	  if test -n "$shlibpath_var"; then	    # Make sure the rpath contains only unique directories.	    case "$temp_rpath " in	    *" $dir "*) ;;	    *) temp_rpath="$temp_rpath $dir" ;;	    esac	  fi	  # We need an absolute path.	  case "$dir" in	  [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;	  *)	    absdir=`cd "$dir" && pwd`	    if test -z "$absdir"; then	      $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2	      $echo "$modename: passing it literally to the linker, although it might fail" 1>&2	      absdir="$dir"	    fi	    ;;	  esac	  	  # This is the magic to use -rpath.	  # Skip directories that are in the system default run-time	  # search path, unless they have been requested with -R.	  case " $sys_lib_dlsearch_path " in	  *" $absdir "*) ;;	  *)	    case "$compile_rpath " in	    *" $absdir "*) ;;	    *) compile_rpath="$compile_rpath $absdir" 	    esac	    ;;	  esac	  case " $sys_lib_dlsearch_path " in	  *" $libdir "*) ;;	  *)	    case "$finalize_rpath " in	    *" $libdir "*) ;;	    *) finalize_rpath="$finalize_rpath $libdir"	    esac	    ;;	  esac	  lib_linked=yes	  case "$hardcode_action" in	  immediate | unsupported)	    if test "$hardcode_direct" = no; then	      compile_command="$compile_command $dir/$linklib"	      deplibs="$deplibs $dir/$linklib"	      case "$host" in	      *-*-cygwin* | *-*-mingw* | *-*-os2*)		dllsearchdir=`cd "$dir" && pwd || echo "$dir"`		if test -n "$dllsearchpath"; then		  dllsearchpath="$dllsearchpath:$dllsearchdir"		else		  dllsearchpath="$dllsearchdir"		fi		;;	      esac	    elif test "$hardcode_minus_L" = no; then	      case "$host" in	      *-*-sunos*)		compile_shlibpath="$compile_shlibpath$dir:"		;;	      esac	      case "$compile_command " in	      *" -L$dir "*) ;;	      *) compile_command="$compile_command -L$dir";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -L$dir -l$name"	    elif test "$hardcode_shlibpath_var" = no; then	      case ":$compile_shlibpath:" in	      *":$dir:"*) ;;	      *) compile_shlibpath="$compile_shlibpath$dir:";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -l$name"	    else	      lib_linked=no	    fi	    ;;	  relink)	    if test "$hardcode_direct" = yes; then	      compile_command="$compile_command $absdir/$linklib"	      deplibs="$deplibs $absdir/$linklib"	    elif test "$hardcode_minus_L" = yes; then	      case "$compile_command " in	      *" -L$absdir "*) ;;	      *) compile_command="$compile_command -L$absdir";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -L$absdir -l$name"	    elif test "$hardcode_shlibpath_var" = yes; then	      case ":$compile_shlibpath:" in	      *":$absdir:"*) ;;	      *) compile_shlibpath="$compile_shlibpath$absdir:";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -l$name"	    else	      lib_linked=no	    fi	    ;;	  *)	    lib_linked=no	    ;;	  esac	  if test "$lib_linked" != yes; then	    $echo "$modename: configuration error: unsupported hardcode properties"	    exit 1	  fi	  # Finalize command for both is simple: just hardcode it.	  if test "$hardcode_direct" = yes; then	    finalize_command="$finalize_command $libdir/$linklib"	  elif test "$hardcode_minus_L" = yes; then	    case "$finalize_command " in	    *" -L$libdir "*) ;;	    *) finalize_command="$finalize_command -L$libdir";;	    esac	    finalize_command="$finalize_command -l$name"	  elif test "$hardcode_shlibpath_var" = yes; then	    case ":$finalize_shlibpath:" in	    *":$libdir:"*) ;;	    *) finalize_shlibpath="$finalize_shlibpath$libdir:";;	    esac	    finalize_command="$finalize_command -l$name"	  else	    # We cannot seem to hardcode it, guess we'll fake it.	    case "$finalize_command " in	    *" -L$dir "*) ;;	    *) finalize_command="$finalize_command -L$libdir";;	    esac	    finalize_command="$finalize_command -l$name"	  fi	else	  # Transform directly to old archives if we don't build new libraries.	  if test -n "$pic_flag" && test -z "$old_library"; then	    $echo "$modename: cannot find static library for \`$arg'" 1>&2	    exit 1	  fi	  # Here we assume that one of hardcode_direct or hardcode_minus_L	  # is not unsupported.  This is valid on all known static and	  # shared platforms.	  if test "$hardcode_direct" != unsupported; then	    test -n "$old_library" && linklib="$old_library"	    compile_command="$compile_command $dir/$linklib"	    finalize_command="$finalize_command $dir/$linklib"	  else	    case "$compile_command " in	    *" -L$dir "*) ;;	    *) compile_command="$compile_command -L$dir";;	    esac	    compile_command="$compile_command -l$name"	    case "$finalize_command " in	    *" -L$dir "*) ;;	    *) finalize_command="$finalize_command -L$dir";;	    esac

⌨️ 快捷键说明

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