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

📄 configure

📁 好东东。linux下面的文件节点、文件状态的变化监听代码
💻
📖 第 1 页 / 共 5 页
字号:
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_prog_rejected=no  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then        ac_prog_rejected=yes	continue      fi      ac_cv_prog_CC="cc"      break    fi  done  IFS="$ac_save_ifs"if test $ac_prog_rejected = yes; then  # We found a bogon in the path, so make sure we never use it.  set dummy $ac_cv_prog_CC  shift  if test $# -gt 0; then    # We chose a different compiler from the bogus one.    # However, it has the same basename, so the bogon will be chosen    # first if we set CC to just the basename; use the full file name.    shift    set dummy "$ac_dir/$ac_word" "$@"    shift    ac_cv_prog_CC="$@"  fifififiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fi  if test -z "$CC"; then    case "`uname -s`" in    *win32* | *WIN32*)      # Extract the first word of "cl", so it can be a program name with args.set dummy cl; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1294: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CC"; then  ac_cv_prog_CC="$CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_CC="cl"      break    fi  done  IFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fi ;;    esac  fi  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1326: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crosscat > conftest.$ac_ext << EOF#line 1337 "configure"#include "confdefs.h"main(){return(0);}EOFif { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  ac_cv_prog_cc_works=yes  # If we can't run a trivial program, we are probably using a cross compiler.  if (./conftest; exit) 2>/dev/null; then    ac_cv_prog_cc_cross=no  else    ac_cv_prog_cc_cross=yes  fielse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  ac_cv_prog_cc_works=nofirm -fr conftest*ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossecho "$ac_t""$ac_cv_prog_cc_works" 1>&6if test $ac_cv_prog_cc_works = no; then  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1368: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6cross_compiling=$ac_cv_prog_cc_crossecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6echo "configure:1373: checking whether we are using GNU C" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.c <<EOF#ifdef __GNUC__  yes;#endifEOFif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  ac_cv_prog_gcc=yeselse  ac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; then  GCC=yeselse  GCC=fiac_test_CFLAGS="${CFLAGS+set}"ac_save_CFLAGS="$CFLAGS"CFLAGS=echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:1401: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  echo 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  ac_cv_prog_cc_g=yeselse  ac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6if 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"  fielse  if test "$GCC" = yes; then    CFLAGS="-O2"  else    CFLAGS=  fifi# Check whether --with-gnu-ld or --without-gnu-ld was given.if test "${with_gnu_ld+set}" = set; then  withval="$with_gnu_ld"  test "$withval" = no || with_gnu_ld=yeselse  with_gnu_ld=nofiac_prog=ldif test "$GCC" = yes; then  # Check if gcc -print-prog-name=ld gives a path.  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6echo "configure:1444: checking for ld used by GCC" >&5  case $host in  *-*-mingw*)    # gcc leaves a trailing carriage return which upsets mingw    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;  *)    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;  esac  case $ac_prog in    # Accept absolute paths.    [\\/]* | [A-Za-z]:[\\/]*)      re_direlt='/[^/][^/]*/\.\./'      # Canonicalize the path of ld      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`      done      test -z "$LD" && LD="$ac_prog"      ;;  "")    # If it fails, then pretend we aren't using GCC.    ac_prog=ld    ;;  *)    # If it is relative, then search for the first ld in PATH.    with_gnu_ld=unknown    ;;  esacelif test "$with_gnu_ld" = yes; then  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6echo "configure:1474: checking for GNU ld" >&5else  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6echo "configure:1477: checking for non-GNU ld" >&5fiif eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -z "$LD"; then  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      lt_cv_path_LD="$ac_dir/$ac_prog"      # Check to see if the program is GNU ld.  I'd rather use --version,      # but apparently some GNU ld's only accept -v.      # Break only if it was the GNU/non-GNU ld that we prefer.      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then	test "$with_gnu_ld" != no && break      else	test "$with_gnu_ld" != yes && break      fi    fi  done  IFS="$ac_save_ifs"else  lt_cv_path_LD="$LD" # Let the user override the test with a path.fifiLD="$lt_cv_path_LD"if test -n "$LD"; then  echo "$ac_t""$LD" 1>&6else  echo "$ac_t""no" 1>&6fitest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6echo "configure:1512: checking if the linker ($LD) is GNU ld" >&5if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  # I'd rather use --version here, but apparently some GNU ld's only accept -v.if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then  lt_cv_prog_gnu_ld=yeselse  lt_cv_prog_gnu_ld=nofifiecho "$ac_t""$lt_cv_prog_gnu_ld" 1>&6with_gnu_ld=$lt_cv_prog_gnu_ldecho $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6echo "configure:1529: checking for $LD option to reload object files" >&5if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  lt_cv_ld_reload_flag='-r'fiecho "$ac_t""$lt_cv_ld_reload_flag" 1>&6reload_flag=$lt_cv_ld_reload_flagtest -n "$reload_flag" && reload_flag=" $reload_flag"echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6echo "configure:1541: checking for BSD-compatible nm" >&5if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$NM"; then  # Let the user override the test.  lt_cv_path_NM="$NM"else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do    test -z "$ac_dir" && ac_dir=.    tmp_nm=$ac_dir/${ac_tool_prefix}nm    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then      # Check to see if the nm accepts a BSD-compat flag.      # Adding the `sed 1q' prevents false positives on HP-UX, which says:      #   nm: unknown option "B" ignored      # Tru64's nm complains that /dev/null is an invalid object file      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then	lt_cv_path_NM="$tmp_nm -B"	break      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then	lt_cv_path_NM="$tmp_nm -p"	break      else	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but	continue # so that we can try to find one that supports BSD flags      fi    fi  done  IFS="$ac_save_ifs"  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nmfifiNM="$lt_cv_path_NM"echo "$ac_t""$NM" 1>&6echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6echo "configure:1579: checking whether ln -s works" >&5if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  rm -f conftestdataif ln -s X conftestdata 2>/dev/nullthen  rm -f conftestdata  ac_cv_prog_LN_S="ln -s"else  ac_cv_prog_LN_S=lnfifiLN_S="$ac_cv_prog_LN_S"if test "$ac_cv_prog_LN_S" = "ln -s"; then  echo "$ac_t""yes" 1>&6else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6echo "configure:1600: checking how to recognise dependant libraries" >&5if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  lt_cv_file_magic_cmd='$MAGIC_CMD'lt_cv_file_magic_test_file=lt_cv_deplibs_check_method='unknown'# Need to set the preceding variable on all platforms that support# interlibrary dependencies.# 'none' -- dependencies not supported.# `unknown' -- same as none, but documents that we really don't know.# 'pass_all' -- all dependencies passed with no checks.# 'test_compile' -- check by making test program.# ['file_magic [regex]'] -- check by looking for files in library path# which responds to the $file_magic_cmd with a given egrep regex.# If you have `file' or equivalent on your system and you're not sure# whether `pass_all' will *always* work, you probably want this one.case $host_os inaix4* | aix5*)  lt_cv_deplibs_check_method=pass_all  ;;beos*)  lt_cv_deplibs_check_method=pass_all  ;;bsdi4*)  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'  lt_cv_file_magic_cmd='/usr/bin/file -L'  lt_cv_file_magic_test_file=/shlib/libc.so  ;;cygwin* | mingw* | pw32*)  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'  lt_cv_file_magic_cmd='$OBJDUMP -f'  ;;darwin* | rhapsody*)  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'  lt_cv_file_magic_cmd='/usr/bin/file -L'  case "$host_os" in  rhapsody* | darwin1.012)    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`    ;;  *) # Darwin 1.3 on    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'    ;;  esac  ;;freebsd*)  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    case $host_cpu in    i*86 )      # Not sure whether the presence of OpenBSD here was a mistake.      # Let's accept both of them until this is cleared up.      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'      lt_cv_file_magic_cmd=/usr/bin/file      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`      ;;    esac  else    lt_cv_deplibs_check_method=pass_all  fi  ;;

⌨️ 快捷键说明

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