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

📄 ltconfig

📁 网络MPEG4IP流媒体开发源代码
💻
📖 第 1 页 / 共 5 页
字号:
  srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`  test "$srcdir" = "$ltmain" && srcdir=.fitrap "$rm conftest*; exit 1" 1 2 15if test "$verify_host" = yes; then  # Check for config.guess and config.sub.  ac_aux_dir=  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do    if test -f $ac_dir/config.guess; then      ac_aux_dir=$ac_dir      break    fi  done  if test -z "$ac_aux_dir"; then    echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2    echo "$help" 1>&2    exit 1  fi  ac_config_guess=$ac_aux_dir/config.guess  ac_config_sub=$ac_aux_dir/config.sub  # Make sure we can run config.sub.  if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :  else    echo "$progname: cannot run $ac_config_sub" 1>&2    echo "$help" 1>&2    exit 1  fi  echo $ac_n "checking host system type""... $ac_c" 1>&6  host_alias=$host  case "$host_alias" in  "")    if host_alias=`$SHELL $ac_config_guess`; then :    else      echo "$progname: cannot guess host type; you must specify one" 1>&2      echo "$help" 1>&2      exit 1    fi ;;  esac  host=`$SHELL $ac_config_sub $host_alias`  echo "$ac_t$host" 1>&6  # Make sure the host verified.  test -z "$host" && exit 1elif test -z "$host"; then  echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2  echo "$help" 1>&2  exit 1else  host_alias=$hostfi# Transform linux* to *-*-linux-gnu*, to support old configure scripts.case "$host_os" inlinux-gnu*) ;;linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`esachost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`case "$host_os" inaix3*)  # AIX sometimes has problems with the GCC collect2 program.  For some  # reason, if we set the COLLECT_NAMES environment variable, the problems  # vanish in a puff of smoke.  if test "X${COLLECT_NAMES+set}" != Xset; then    COLLECT_NAMES=    export COLLECT_NAMES  fi  ;;esac# Determine commands to create old-style static archives.old_archive_cmds='$AR cru $oldlib$oldobjs'old_postinstall_cmds='chmod 644 $oldlib'old_postuninstall_cmds=# Set a sane default for `AR'.test -z "$AR" && AR=ar# Set a sane default for `OBJDUMP'.test -z "$OBJDUMP" && OBJDUMP=objdump# If RANLIB is not set, then run the test.if test "${RANLIB+set}" != "set"; then  result=no  echo $ac_n "checking for ranlib... $ac_c" 1>&6  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"  for dir in $PATH; do    test -z "$dir" && dir=.    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then      RANLIB="ranlib"      result="ranlib"      break    fi  done  IFS="$save_ifs"  echo "$ac_t$result" 1>&6fiif test -n "$RANLIB"; then  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"  case "$host_os" in  openbsd*)    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"  ;;  *)    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"  ;;  esacfi# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.test -z "$DLLTOOL" && DLLTOOL=dlltooltest -z "$OBJDUMP" && OBJDUMP=objdumptest -z "$AS" && AS=as# Check to see if we are using GCC.if test "$with_gcc" != yes || test -z "$CC"; then  # If CC is not set, then try to find GCC or a usable CC.  if test -z "$CC"; then    echo $ac_n "checking for gcc... $ac_c" 1>&6    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"    for dir in $PATH; do      test -z "$dir" && dir=.      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then	CC="gcc"	break      fi    done    IFS="$save_ifs"    if test -n "$CC"; then      echo "$ac_t$CC" 1>&6    else      echo "$ac_t"no 1>&6    fi  fi  # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".  if test -z "$CC"; then    echo $ac_n "checking for cc... $ac_c" 1>&6    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"    cc_rejected=no    for dir in $PATH; do      test -z "$dir" && dir=.      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then	if test "$dir/cc" = "/usr/ucb/cc"; then	  cc_rejected=yes	  continue	fi	CC="cc"	break      fi    done    IFS="$save_ifs"    if test $cc_rejected = yes; then      # We found a bogon in the path, so make sure we never use it.      set dummy $CC      shift      if test $# -gt 0; then	# We chose a different compiler from the bogus one.	# However, it has the same name, so the bogon will be chosen	# first if we set CC to just the name; use the full file name.	shift	set dummy "$dir/cc" "$@"	shift	CC="$@"      fi    fi    if test -n "$CC"; then      echo "$ac_t$CC" 1>&6    else      echo "$ac_t"no 1>&6    fi    if test -z "$CC"; then      echo "$progname: error: no acceptable cc found in \$PATH" 1>&2      exit 1    fi  fi  # Now see if the compiler is really GCC.  with_gcc=no  echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6  echo "$progname:581: checking whether we are using GNU C" >&5  $rm conftest.c  cat > conftest.c <<EOF#ifdef __GNUC__  yes;#endifEOF  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then    with_gcc=yes  fi  $rm conftest.c  echo "$ac_t$with_gcc" 1>&6fi# Allow CC to be a program name with arguments.set dummy $CCcompiler="$2"echo $ac_n "checking for object suffix... $ac_c" 1>&6$rm conftest*echo 'int i = 1;' > conftest.cecho "$progname:603: checking for object suffix" >& 5if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then  # Append any warnings to the config.log.  cat conftest.err 1>&5  for ac_file in conftest.*; do    case $ac_file in    *.c) ;;    *) objext=`echo $ac_file | sed -e s/conftest.//` ;;    esac  doneelse  cat conftest.err 1>&5  echo "$progname: failed program was:" >&5  cat conftest.c >&5fi$rm conftest*echo "$ac_t$objext" 1>&6echo $ac_n "checking for executable suffix... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_cv_exeext="no"  $rm conftest*  echo 'main () { return 0; }' > conftest.c  echo "$progname:629: checking for executable suffix" >& 5  if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then    # Append any warnings to the config.log.    cat conftest.err 1>&5    for ac_file in conftest.*; do      case $ac_file in      *.c | *.err | *.$objext ) ;;      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;      esac    done  else    cat conftest.err 1>&5    echo "$progname: failed program was:" >&5    cat conftest.c >&5  fi  $rm conftest*fiif test "X$ac_cv_exeext" = Xno; then  exeext=""else  exeext="$ac_cv_exeext"fiecho "$ac_t$ac_cv_exeext" 1>&6echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6pic_flag=special_shlib_compile_flags=wl=link_static_flag=no_builtin_flag=if test "$with_gcc" = yes; then  wl='-Wl,'  link_static_flag='-static'  case "$host_os" in  beos* | irix5* | irix6* | osf3* | osf4* | osf5*)    # PIC is the default for these OSes.    ;;  aix*)    # Below there is a dirty hack to force normal static linking with -ldl    # The problem is because libdl dynamically linked with both libc and    # libC (AIX C++ library), which obviously doesn't included in libraries    # list by gcc. This cause undefined symbols with -static flags.    # This hack allows C programs to be linked with "-static -ldl", but    # we not sure about C++ programs.    link_static_flag="$link_static_flag ${wl}-lC"    ;;  cygwin* | mingw* | os2*)    # We can build DLLs from non-PIC.    ;;  darwin* | rhapsody*)    # PIC is the default on this platform    # Common symbols not allowed in MH_DYLIB files    pic_flag='-fno-common'    ;;  amigaos*)    # FIXME: we need at least 68020 code to build shared libraries, but    # adding the `-m68020' flag to GCC prevents building anything better,    # like `-m68040'.    pic_flag='-m68020 -resident32 -malways-restore-a4'    ;;  sysv4*MP*)    if test -d /usr/nec; then       pic_flag=-Kconform_pic    fi    ;;  *)    pic_flag='-fPIC'    ;;  esacelse  # PORTME Check for PIC flags for the system compiler.  case "$host_os" in  aix3* | aix4*)    # All AIX code is PIC.    link_static_flag='-bnso -bI:/lib/syscalls.exp'    ;;  hpux9* | hpux10* | hpux11*)    # Is there a better link_static_flag that works with the bundled CC?    wl='-Wl,'    link_static_flag="${wl}-a ${wl}archive"    pic_flag='+Z'    ;;  irix5* | irix6*)    wl='-Wl,'    link_static_flag='-non_shared'    # PIC (with -KPIC) is the default.    ;;  cygwin* | mingw* | os2*)    # We can build DLLs from non-PIC.    ;;  osf3* | osf4* | osf5*)    # All OSF/1 code is PIC.    wl='-Wl,'    link_static_flag='-non_shared'    ;;  sco3.2v5*)    pic_flag='-Kpic'    link_static_flag='-dn'    special_shlib_compile_flags='-belf'    ;;  solaris*)    pic_flag='-KPIC'    link_static_flag='-Bstatic'    wl='-Wl,'    ;;  sunos4*)    pic_flag='-PIC'    link_static_flag='-Bstatic'    wl='-Qoption ld '    ;;  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)    pic_flag='-KPIC'    link_static_flag='-Bstatic'    wl='-Wl,'    ;;  uts4*)    pic_flag='-pic'    link_static_flag='-Bstatic'    ;;  sysv4*MP*)    if test -d /usr/nec ;then      pic_flag='-Kconform_pic'      link_static_flag='-Bstatic'    fi    ;;  *)    can_build_shared=no    ;;  esacfiif test -n "$pic_flag"; then  echo "$ac_t$pic_flag" 1>&6  # Check to make sure the pic_flag actually works.  echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6  $rm conftest*  echo "int some_variable = 0;" > conftest.c  save_CFLAGS="$CFLAGS"

⌨️ 快捷键说明

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