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

📄 ltconfig

📁 bookcase,by shell script and c++ and perl
💻
📖 第 1 页 / 共 5 页
字号:
    echo "$progname: invalid tag name: $tagname" 1>&2    exit 1    ;;  esac  if grep "^### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$ofile" > /dev/null; then    echo "$progname: tag name $tagname already exists" 1>&2    exit 1  fi  if test ! -f "$ofile"; then    echo "$progname: warning: output file \`$ofile' does not exist" 1>&2  fi  if test -z "$LTCC"; then    eval "`$SHELL $ofile --config | grep '^LTCC='`"    if test -z "$LTCC"; then      echo "$progname: warning: output file \`$ofile' does not look like a libtool script" 1>&2    else      echo "$progname: warning: using \`LTCC=$LTCC', extracted from \`$ofile'" 1>&2    fi  fifi# Quote any args containing shell metacharacters.ltconfig_args=for argdo  case $arg in  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  ltconfig_args="$ltconfig_args '$arg'" ;;  *) ltconfig_args="$ltconfig_args $arg" ;;  esacdone# A relevant subset of AC_INIT.# File descriptor usage:# 0 standard input# 1 file creation# 2 errors and warnings# 3 some systems may open it to /dev/tty# 4 used on the Kubota Titan# 5 compiler messages saved in config.log# 6 checking for... messages and resultsif test "$silent" = yes; then  exec 6>/dev/nullelse  exec 6>&1fiexec 5>>./config.log# NLS nuisances.# Only set LANG and LC_ALL to C if already set.# These must not be set unconditionally because not all systems understand# e.g. LANG=C (notably SCO).if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fiif test "X${LANG+set}"   = Xset; then LANG=C;   export LANG;   fiif test -n "$cache_file" && test -r "$cache_file" && test -f "$cache_file"; then  echo "loading cache $cache_file within ltconfig"  . $cache_filefiif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    ac_n= ac_c='' ac_t='	'  else    ac_n=-n ac_c= ac_t=  fielse  ac_n= ac_c='\c' ac_t=fiif test -z "$srcdir"; then  # Assume the source directory is the same one as the path to LTMAIN.  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  "")    # Force config.guess to use the C compiler.    # CC_FOR_BUILD overrides the CC variable in config.guess but I had    # problems with it so do it this way for now.    CC="$LTCC"    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    # Restore the C compiler.    CC="$old_CC"    ;;  esac  host=`$SHELL $ac_config_sub $host_alias`  echo "$ac_t$host" 1>&6  # Make sure the host verified.  test -z "$host" && exit 1  # Check for the build system type  echo $ac_n "checking build system type... $ac_c" 1>&6  build_alias=$build  case $build_alias in  NONE)    case $nonopt in    NONE) build_alias=$host_alias ;;    *) build_alias=$nonopt ;;    esac ;;  esac  build=`$SHELL $ac_config_sub $build_alias`  build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  echo "$ac_t""$build" 1>&6elif 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=$host  build_alias=$host_alias  build=$hostfiif test x"$host" != x"$build"; then  ac_tool_prefix=${host_alias}-else  ac_tool_prefix=fihost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`# 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/'`esaccase $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 $AR_FLAGS $oldlib$oldobjs$old_deplibs'old_postinstall_cmds='chmod 644 $oldlib'old_postuninstall_cmds=if test -n "$RANLIB"; then  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"fi# Source the script associated with the $tagname tag configuration.if test -n "$tagname"; then  . $ltmainelse  # FIXME:  We should use a variable here  # Configure for a C compiler  . $srcdir/ltcf-c.shfi# Set sane defaults for various variablestest -z "$AR" && AR=artest -z "$AR_FLAGS" && AR_FLAGS=crutest -z "$AS" && AS=astest -z "$CC" && CC=cctest -z "$DLLTOOL" && DLLTOOL=dlltooltest -z "$MAGIC_CMD" && MAGIC_CMD=filetest -z "$LD" && LD=ldtest -z "$LN_S" && LN_S="ln -s"test -z "$NM" && NM=nmtest -z "$OBJDUMP" && OBJDUMP=objdumptest -z "$RANLIB" && RANLIB=:test -z "$STRIP" && STRIP=:test -z "$objext" && objext=oecho $ac_n "checking for objdir... $ac_c" 1>&6rm -f .libs 2>/dev/nullmkdir .libs 2>/dev/nullif test -d .libs; then  objdir=.libselse  # MS-DOS does not allow filenames that begin with a dot.  objdir=_libsfirmdir .libs 2>/dev/nullecho "$ac_t$objdir" 1>&6# If no C compiler was specified, use CC.LTCC=${LTCC-"$CC"}# Allow CC to be a program name with arguments.set dummy $CCcompiler="$2"# We assume here that the value for ac_cv_prog_cc_pic will not be cached# in isolation, and that seeing it set (from the cache) indicates that# the associated values are set (in the cache) correctly too.echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6echo "$progname:678:checking for $compiler option to produce PIC" 1>&5if test -z "$ac_cv_prog_cc_pic"; then  echo "$ac_t"none 1>&6else  echo "$ac_t""$ac_cv_prog_cc_pic" 1>&6  # Check to make sure the pic_flag actually works.  echo $ac_n "checking if $compiler PIC flag $ac_cv_prog_cc_pic works... $ac_c" 1>&6  echo "$progname:687:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5  if test "X${ac_cv_prog_cc_pic_works+set}" = Xset && \     test "X${ac_cv_prog_cc_pic_works}" != X; then    echo $ac_n "(cached) $ac_c" 1>&6  else    ac_cv_prog_cc_pic_works=yes    $rm conftest*    echo $lt_simple_compile_test_code > conftest.$ac_ext    save_CFLAGS="$CFLAGS"    CFLAGS="$CFLAGS $ac_cv_prog_cc_pic -DPIC"    if { (eval echo $progname:697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then      # Append any warnings to the config.log.      cat conftest.err 1>&5      case $host_os in      hpux9* | hpux10* | hpux11*)	# On HP-UX, both CC and GCC only warn that PIC is supported... then	# they create non-PIC objects.  So, if there were any warnings, we	# assume that PIC is not supported.	if test -s conftest.err; then	  ac_cv_prog_cc_pic_works=no	  ac_cv_prog_cc_can_build_shared=no	  ac_cv_prog_cc_pic=	else	  ac_cv_prog_cc_pic_works=yes	  ac_cv_prog_cc_pic=" $ac_cv_prog_cc_pic"	fi	;;      *)	ac_cv_prog_cc_pic_works=yes	ac_cv_prog_cc_pic=" $ac_cv_prog_cc_pic"	;;      esac    else      # Append any errors to the config.log.      cat conftest.err 1>&5      ac_cv_prog_cc_pic_works=no      ac_cv_prog_cc_can_build_shared=no      ac_cv_prog_cc_pic=    fi    CFLAGS="$save_CFLAGS"    $rm conftest*  fi  # Belt *and* braces to stop my trousers falling down:  if test "X$ac_cv_prog_cc_pic_works" = Xno; then    ac_cv_prog_cc_pic=    ac_cv_prog_cc_can_build_shared=no  fi  echo "$ac_t""$ac_cv_prog_cc_pic_works" 1>&6fi# Check for any special shared library compilation flags.if test -n "$ac_cv_prog_cc_shlib"; then  echo "$progname: warning: \`$CC' requires \`$ac_cv_prog_cc_shlib' to build shared libraries" 1>&2  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$ac_cv_prog_cc_shlib[ 	]" >/dev/null; then :  else    echo "$progname: add \`$ac_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2    ac_cv_prog_cc_can_build_shared=no  fifiecho $ac_n "checking if $compiler static flag $ac_cv_prog_cc_static works... $ac_c" 1>&6echo "$progname:749: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5if test "X${ac_cv_prog_cc_static_works+set}" = Xset && \   test "X${ac_cv_prog_cc_static_works}" != X; then  echo $ac_n "(cached) $ac_c" 1>&6else  $rm conftest*  echo $lt_simple_link_test_code > conftest.$ac_ext  save_LDFLAGS="$LDFLAGS"  LDFLAGS="$LDFLAGS $ac_cv_prog_cc_static"  if { (eval echo $progname:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then    ac_cv_prog_cc_static_works=yes  else    ac_cv_prog_cc_static_works=no    ac_cv_prog_cc_static=  fi  LDFLAGS="$save_LDFLAGS"  $rm conftest*fi# Belt *and* braces to stop my trousers falling down:if test "X$ac_cv_prog_cc_static_works" = Xno; then  ac_cv_prog_cc_static=fiecho "$ac_t""$ac_cv_prog_cc_static_works" 1>&6pic_flag="$ac_cv_prog_cc_pic"special_shlib_compile_flags="$ac_cv_prog_cc_shlib"wl="$ac_cv_prog_cc_wl"link_static_flag="$ac_cv_prog_cc_static"no_builtin_flag="$ac_cv_prog_cc_no_builtin"can_build_shared="$ac_cv_prog_cc_can_build_shared"# find the maximum length of command line argumentsecho "$progname:780: finding the maximum length of command line arguments" 1>&5echo $ac_n "finding the maximum length of command line arguments... $ac_c" 1>&6if test "${lt_cv_sys_max_cmd_len+set}" = set; then  echo $ac_n "(cached) $ac_c" 1>&6else  i=0  testring="ABCDEF"  while test `$CONFIG_SHELL $0 --fallback-echo "X$testring" >/dev/null 2>&1` == `echo "X$testring" >/dev/null 2>&1` &&          new_result=`expr "X$testring" : ".*" 2>&1` &&          lt_cv_sys_max_cmd_len=$new_result &&          test $i != 32 # 1 MB should be enough  do    i=`expr $i + 1`    testring=$testring$testring  done  testring=  # add a significant safety factor because C++ compilers can tack on massive amounts  # of additional arguments before passing them to the linker.  1/4 should be good.  len=`expr $lt_cv_sys_max_cmd_len \/ 4`  lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`fiecho "$progname:@lineno@: result: $lt_cv_sys_max_cmd_len" 1>&5echo "${ac_t}$lt_cv_sys_max_cmd_len" 1>&6if test -n $lt_cv_sys_max_cmd_len ; then  max_cmd_len=$lt_cv_sys_max_cmd_lenelse  max_cmd_len=nonefi# Check to see if options -o and -c are simultaneously supported by compilerecho $ac_n "checking if $compiler supports -c -o file.$objext... $ac_c" 1>&6if test "${lt_cv_compiler_c_o+set}" = set; then  echo $ac_n "(cached) $ac_c" 1>&6else  $rm -r conftest 2>/dev/null  mkdir conftest  cd conftest  $rm conftest*  echo $lt_simple_compile_test_code > conftest.$ac_ext  mkdir out  # According to Tom Tromey, Ian Lance Taylor reported there are C compilers  # that will create temporary files in the current directory regardless of  # the output directory.  Thus, making CWD read-only will cause this test  # to fail, enabling locking or at least warning the user not to do parallel  # builds.  chmod -w .  save_CFLAGS="$CFLAGS"  CFLAGS="$CFLAGS -o out/conftest2.$objext"  echo "$progname:829: checking if $compiler supports -c -o file.$objext" >&5  if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then    # The compiler can only warn and ignore the option if not recognized    # So say no if there are warnings      if test -s out/conftest.err; then        lt_cv_compiler_c_o=no      else        lt_cv_compiler_c_o=yes      fi  else    # Append any errors to the config.log.    cat out/conftest.err 1>&5    lt_cv_compiler_c_o=no  fi  CFLAGS="$save_CFLAGS"  chmod u+w .  $rm conftest* out/*  rmdir out  cd ..  rmdir conftest  $rm -r conftest 2>/dev/nullficompiler_c_o=$lt_cv_compiler_c_oecho "${ac_t}$compiler_c_o" 1>&6# Check to see if we can do hard links to lock some files if neededhard_links="nottested"if test "$compiler_c_o" = no && test "$need_locks" != no; then  # do not overwrite the value of need_locks provided by the user

⌨️ 快捷键说明

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