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

📄 rn_complete.patch

📁 linux下编译交叉工具链的工具源码
💻 PATCH
📖 第 1 页 / 共 5 页
字号:
++do++  IFS=$as_save_IFS++  test -z "$as_dir" && as_dir=.++  for ac_exec_ext in '' $ac_executable_extensions; do++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then++    ac_cv_prog_ac_ct_CC="$ac_prog"++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5++    break 2++  fi++done++done++++fi++fi++ac_ct_CC=$ac_cv_prog_ac_ct_CC++if test -n "$ac_ct_CC"; then++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5++echo "${ECHO_T}$ac_ct_CC" >&6++else++  echo "$as_me:$LINENO: result: no" >&5++echo "${ECHO_T}no" >&6++fi++++  test -n "$ac_ct_CC" && break++done++++  CC=$ac_ct_CC++fi++++fi++++++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5++echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}++   { (exit 1); exit 1; }; }++++# Provide some information about the compiler.++echo "$as_me:$LINENO:" \++     "checking for C compiler version" >&5++ac_compiler=`set X $ac_compile; echo $2`++{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5++  (eval $ac_compiler --version </dev/null >&5) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5++  (eval $ac_compiler -v </dev/null >&5) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5++  (eval $ac_compiler -V </dev/null >&5) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }++++cat >conftest.$ac_ext <<_ACEOF++#line $LINENO "configure"++#include "confdefs.h"++++#ifdef F77_DUMMY_MAIN++#  ifdef __cplusplus++     extern "C"++#  endif++   int F77_DUMMY_MAIN() { return 1; }++#endif++int++main ()++{++++  ;++  return 0;++}++_ACEOF++ac_clean_files_save=$ac_clean_files++ac_clean_files="$ac_clean_files a.out a.exe"++# Try to create an executable without -o first, disregard a.out.++# It will help us diagnose broken compilers, and finding out an intuition++# of exeext.++echo "$as_me:$LINENO: checking for C compiler default output" >&5++echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`++if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5++  (eval $ac_link_default) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }; then++  # Find the output, starting from the most likely.  This scheme is++# not robust to junk in `.', hence go to wildcards (a.*) only as a last++# resort.++++# Be careful to initialize this variable, since it used to be cached.++# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.++ac_cv_exeext=++for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;++                ls a.out conftest 2>/dev/null;++                ls a.* conftest.* 2>/dev/null`; do++  case $ac_file in++    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;++    a.out ) # We found the default executable, but exeext='' is most++            # certainly right.++            break;;++    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`++          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.++          export ac_cv_exeext++          break;;++    * ) break;;++  esac++done++else++  echo "$as_me: failed program was:" >&5++cat conftest.$ac_ext >&5++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5++echo "$as_me: error: C compiler cannot create executables" >&2;}++   { (exit 77); exit 77; }; }++fi++++ac_exeext=$ac_cv_exeext++echo "$as_me:$LINENO: result: $ac_file" >&5++echo "${ECHO_T}$ac_file" >&6++++# Check the compiler produces executables we can run.  If not, either++# the compiler is broken, or we cross compile.++echo "$as_me:$LINENO: checking whether the C compiler works" >&5++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0++# If not cross compiling, check that we can run a simple program.++if test "$cross_compiling" != yes; then++  if { ac_try='./$ac_file'++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5++  (eval $ac_try) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }; }; then++    cross_compiling=no++  else++    if test "$cross_compiling" = maybe; then++	cross_compiling=yes++    else++	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.++If you meant to cross compile, use \`--host'." >&5++echo "$as_me: error: cannot run C compiled programs.++If you meant to cross compile, use \`--host'." >&2;}++   { (exit 1); exit 1; }; }++    fi++  fi++fi++echo "$as_me:$LINENO: result: yes" >&5++echo "${ECHO_T}yes" >&6++++rm -f a.out a.exe conftest$ac_cv_exeext++ac_clean_files=$ac_clean_files_save++# Check the compiler produces executables we can run.  If not, either++# the compiler is broken, or we cross compile.++echo "$as_me:$LINENO: checking whether we are cross compiling" >&5++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6++echo "$as_me:$LINENO: result: $cross_compiling" >&5++echo "${ECHO_T}$cross_compiling" >&6++++echo "$as_me:$LINENO: checking for suffix of executables" >&5++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5++  (eval $ac_link) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }; then++  # If both `conftest.exe' and `conftest' are `present' (well, observable)++# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will++# work properly (i.e., refer to `conftest.exe'), while it won't with++# `rm'.++for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do++  case $ac_file in++    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;++    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`++          export ac_cv_exeext++          break;;++    * ) break;;++  esac++done++else++  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}++   { (exit 1); exit 1; }; }++fi++++rm -f conftest$ac_cv_exeext++echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5++echo "${ECHO_T}$ac_cv_exeext" >&6++++rm -f conftest.$ac_ext++EXEEXT=$ac_cv_exeext++ac_exeext=$EXEEXT++echo "$as_me:$LINENO: checking for suffix of object files" >&5++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6++if test "${ac_cv_objext+set}" = set; then++  echo $ECHO_N "(cached) $ECHO_C" >&6++else++  cat >conftest.$ac_ext <<_ACEOF++#line $LINENO "configure"++#include "confdefs.h"++++#ifdef F77_DUMMY_MAIN++#  ifdef __cplusplus++     extern "C"++#  endif++   int F77_DUMMY_MAIN() { return 1; }++#endif++int++main ()++{++++  ;++  return 0;++}++_ACEOF++rm -f conftest.o conftest.obj++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5++  (eval $ac_compile) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }; then++  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do++  case $ac_file in++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;++    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`++       break;;++  esac++done++else++  echo "$as_me: failed program was:" >&5++cat conftest.$ac_ext >&5++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5++echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}++   { (exit 1); exit 1; }; }++fi++++rm -f conftest.$ac_cv_objext conftest.$ac_ext++fi++echo "$as_me:$LINENO: result: $ac_cv_objext" >&5++echo "${ECHO_T}$ac_cv_objext" >&6++OBJEXT=$ac_cv_objext++ac_objext=$OBJEXT++echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6++if test "${ac_cv_c_compiler_gnu+set}" = set; then++  echo $ECHO_N "(cached) $ECHO_C" >&6++else++  cat >conftest.$ac_ext <<_ACEOF++#line $LINENO "configure"++#include "confdefs.h"++++#ifdef F77_DUMMY_MAIN++#  ifdef __cplusplus++     extern "C"++#  endif++   int F77_DUMMY_MAIN() { return 1; }++#endif++int++main ()++{++#ifndef __GNUC__++       choke me++#endif++++  ;++  return 0;++}++_ACEOF++rm -f conftest.$ac_objext++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5++  (eval $ac_compile) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); } &&++         { ac_try='test -s conftest.$ac_objext'++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5++  (eval $ac_try) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }; }; then++  ac_compiler_gnu=yes++else++  echo "$as_me: failed program was:" >&5++cat conftest.$ac_ext >&5++ac_compiler_gnu=no++fi++rm -f conftest.$ac_objext conftest.$ac_ext++ac_cv_c_compiler_gnu=$ac_compiler_gnu++++fi++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6++GCC=`test $ac_compiler_gnu = yes && echo yes`++ac_test_CFLAGS=${CFLAGS+set}++ac_save_CFLAGS=$CFLAGS++CFLAGS="-g"++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6++if test "${ac_cv_prog_cc_g+set}" = set; then++  echo $ECHO_N "(cached) $ECHO_C" >&6++else++  cat >conftest.$ac_ext <<_ACEOF++#line $LINENO "configure"++#include "confdefs.h"++++#ifdef F77_DUMMY_MAIN++#  ifdef __cplusplus++     extern "C"++#  endif++   int F77_DUMMY_MAIN() { return 1; }++#endif++int++main ()++{++++  ;++  return 0;++}++_ACEOF++rm -f conftest.$ac_objext++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5++  (eval $ac_compile) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); } &&++         { ac_try='test -s conftest.$ac_objext'++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5++  (eval $ac_try) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }; }; then++  ac_cv_prog_cc_g=yes++else++  echo "$as_me: failed program was:" >&5++cat conftest.$ac_ext >&5++ac_cv_prog_cc_g=no++fi++rm -f conftest.$ac_objext conftest.$ac_ext++fi++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6++if test "$ac_test_CFLAGS" = set; then++  CFLAGS=$ac_save_CFLAGS++elif test $ac_cv_prog_cc_g = yes; then++  if test "$GCC" = yes; then++    CFLAGS="-g -O2"++  else++    CFLAGS="-g"++  fi++else++  if test "$GCC" = yes; then++    CFLAGS="-O2"++  else++    CFLAGS=++  fi++fi++# Some people use a C++ compiler to compile C.  Since we use `exit',++# in C++ we need to declare it.  In case someone uses the same compiler++# for both compiling C and C++ we need to have the C++ compiler decide++# the declaration of exit, since it's the most demanding environment.++cat >conftest.$ac_ext <<_ACEOF++#ifndef __cplusplus++  choke me++#endif++_ACEOF++rm -f conftest.$ac_objext++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5++  (eval $ac_compile) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); } &&++         { ac_try='test -s conftest.$ac_objext'++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5++  (eval $ac_try) 2>&5++  ac_status=$?++  echo "$as_me:$LINENO: \$? = $ac_status" >&5++  (exit $ac_status); }; }; then++  for ac_declaration in \++   ''\++   '#include <stdlib.h>' \++   'extern "C" void std::exit (int) throw (); using std::exit;' \++   'extern "C" void std::exit (int); using std::exit;' \++   'extern "C" void exit (int) throw ();' \++   'extern "C" void exit (int);' \++   'void exit (int);'++do++  cat >conftest.$ac_ext <<_ACEOF++#line $LINENO "configure"++#include "confdefs.h"++#include <stdlib.h>++$ac_declaration++#ifdef F77_DUMMY_MAIN++#  ifdef __cplusplus++     extern "C"++#  endif++   int F77_DUMMY_MAIN() { return 1; }++#endif++int++main ()++{++exit (42);++  ;++  return 0;+

⌨️ 快捷键说明

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