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

📄 configure

📁 一个C格式的脚本处理函数库源代码,可让你的C程序具有执行C格式的脚本文件
💻
📖 第 1 页 / 共 5 页
字号:
  cat > conftest.$ac_ext <<EOF#line 955 "configure"#include "confdefs.h"#include <sgtty.h>Autoconf TIOCGETPEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "$ac_pattern" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_prog_gcc_traditional=yeselse  rm -rf conftest*  ac_cv_prog_gcc_traditional=nofirm -f conftest*  if test $ac_cv_prog_gcc_traditional = no; then    cat > conftest.$ac_ext <<EOF#line 973 "configure"#include "confdefs.h"#include <termio.h>Autoconf TCGETAEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "$ac_pattern" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_prog_gcc_traditional=yesfirm -f conftest*  fifiecho "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6  if test $ac_cv_prog_gcc_traditional = yes; then    CC="$CC -traditional"  fifiecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6echo "configure:995: checking for POSIXized ISC" >&5if test -d /etc/conf/kconfig.d &&  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1then  echo "$ac_t""yes" 1>&6  ISC=yes # If later tests want to check for ISC.  cat >> confdefs.h <<\EOF#define _POSIX_SOURCE 1EOF  if test "$GCC" = yes; then    CC="$CC -posix"  else    CC="$CC -Xp"  fielse  echo "$ac_t""no" 1>&6  ISC=fiecho $ac_n "checking for AIX""... $ac_c" 1>&6echo "configure:1016: checking for AIX" >&5cat > conftest.$ac_ext <<EOF#line 1018 "configure"#include "confdefs.h"#ifdef _AIX  yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF#define _ALL_SOURCE 1EOFelse  rm -rf conftest*  echo "$ac_t""no" 1>&6firm -f conftest*cat > conftest.$ac_ext <<EOF#line 1041 "configure"#include "confdefs.h"#ifdef hpux  yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  cat >> confdefs.h <<\EOF#define _HPUX_SOURCE 1EOFif test "$CC" = cc; then CC="cc -Ae"; fifirm -f conftest*echo $ac_n "checking C compiler that understands ANSI prototypes""... $ac_c" 1>&6echo "configure:1061: checking C compiler that understands ANSI prototypes" >&5cat > conftest.$ac_ext <<EOF#line 1063 "configure"#include "confdefs.h" int main() { extern int silly (int);; return 0; }EOFif { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*   echo "$ac_t""$CC looks ok.  Good." 1>&6else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*   echo "$ac_t""$CC is not a good enough compiler" 1>&6 { echo "configure: error: Set env variable CC to your ANSI compiler and rerun configure." 1>&2; exit 1; } firm -f conftest*echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6echo "configure:1087: checking whether ${MAKE-make} sets \${MAKE}" >&5set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftestmake <<\EOFall:	@echo 'ac_maketemp="${MAKE}"'EOF# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`if test -n "$ac_maketemp"; then  eval ac_cv_prog_make_${ac_make}_set=yeselse  eval ac_cv_prog_make_${ac_make}_set=nofirm -f conftestmakefiif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then  echo "$ac_t""yes" 1>&6  SET_MAKE=else  echo "$ac_t""no" 1>&6  SET_MAKE="MAKE=${MAKE-make}"fi# Extract the first word of "ranlib", so it can be a program name with args.set dummy ranlib; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1116: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$RANLIB"; then  ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"fifiRANLIB="$ac_cv_prog_RANLIB"if test -n "$RANLIB"; then  echo "$ac_t""$RANLIB" 1>&6else  echo "$ac_t""no" 1>&6fi# Find a good install program.  We prefer a C program (faster),# so one script is as good as another.  But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:1155: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"  for ac_dir in $PATH; do    # Account for people who put trailing slashes in PATH elements.    case "$ac_dir/" in    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;    *)      # OSF1 and SCO ODT 3.0 have their own names for install.      # Don't use installbsd from OSF since it installs stuff as root      # by default.      for ac_prog in ginstall scoinst install; do        if test -f $ac_dir/$ac_prog; then	  if test $ac_prog = install &&            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then	    # AIX install.  It has an incompatible calling convention.	    :	  else	    ac_cv_path_install="$ac_dir/$ac_prog -c"	    break 2	  fi	fi      done      ;;    esac  done  IFS="$ac_save_IFS"fi  if test "${ac_cv_path_install+set}" = set; then    INSTALL="$ac_cv_path_install"  else    # As a last resort, use the slow shell script.  We don't cache a    # path for INSTALL within a source directory, because that will    # break other packages using the cache if that directory is    # removed, or if the path is relative.    INSTALL="$ac_install_sh"  fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'#Check these header since they cause troublefor ac_hdr in \stdlib.h \unistd.h \memory.h \termios.h \malloc.h \locale.h \fcntl.h \sys/fcntl.h \sys/types.h \sys/wait.h \sys/utsname.h \sys/times.h \doac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1226: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1231 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else  echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:1264: checking for ANSI C header files" >&5if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1269 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  ac_cv_header_stdc=yeselse  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1294 "configure"#include "confdefs.h"#include <string.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "memchr" >/dev/null 2>&1; then  :else  rm -rf conftest*  ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1312 "configure"#include "confdefs.h"#include <stdlib.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "free" >/dev/null 2>&1; then  :else  rm -rf conftest*  ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.if test "$cross_compiling" = yes; then  :else  cat > conftest.$ac_ext <<EOF#line 1333 "configure"#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFif { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  :else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  ac_cv_header_stdc=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; then  cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfiecho $ac_n "checking for mode_t""... $ac_c" 1>&6echo "configure:1368: checking for mode_t" >&5if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1373 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_type_mode_t=yeselse  rm -rf conftest*  ac_cv_type_mode_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_mode_t" 1>&6if test $ac_cv_type_mode_t = no; then  cat >> confdefs.h <<\EOF#define mode_t intEOFfiecho $ac_n "checking for pid_t""... $ac_c" 1>&6echo "configure:1401: checking for pid_t" >&5if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1406 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_type_pid_t=yeselse  rm -rf conftest*  ac_cv_type_pid_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_pid_t" 1>&6if test $ac_cv_type_pid_t = no; then  cat >> confdefs.h <<\EOF#define pid_t intEOF

⌨️ 快捷键说明

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