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

📄 configure

📁 c语言开发,ntp协议,利于新手的学习和上手
💻
📖 第 1 页 / 共 5 页
字号:
#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:900: \"$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  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP="${CC-cc} -nologo -E"  cat > conftest.$ac_ext <<EOF#line 911 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:917: \"$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  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest*  ac_cv_prog_CPP="$CPP"fi  CPP="$ac_cv_prog_CPP"else  ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6# Extract the first word of "gunzip", so it can be a program name with args.set dummy gunzip; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:947: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_GUNZIP'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$GUNZIP" in  /*)  ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.  ;;  ?:/*)			   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a dos path.  ;;  *)  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_path_GUNZIP="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  ;;esacfiGUNZIP="$ac_cv_path_GUNZIP"if test -n "$GUNZIP"; then  echo "$ac_t""$GUNZIP" 1>&6else  echo "$ac_t""no" 1>&6ficat >> confdefs.h <<EOF#define GUNZIP "$ac_cv_path_GUNZIP"EOFac_header_dirent=nofor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6echo "configure:989: checking for $ac_hdr that defines DIR" >&5if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 994 "configure"#include "confdefs.h"#include <sys/types.h>#include <$ac_hdr>int main() {DIR *dirp = 0;; return 0; }EOFif { (eval echo configure:1002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_header_dirent_$ac_safe=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_dirent_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_dirent_'$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 ac_header_dirent=$ac_hdr; breakelse  echo "$ac_t""no" 1>&6fidone# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.if test $ac_header_dirent = dirent.h; thenecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6echo "configure:1027: checking for opendir in -ldir" >&5ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-ldir  $LIBS"cat > conftest.$ac_ext <<EOF#line 1035 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  LIBS="$LIBS -ldir"else  echo "$ac_t""no" 1>&6fielseecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6echo "configure:1068: checking for opendir in -lx" >&5ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lx  $LIBS"cat > conftest.$ac_ext <<EOF#line 1076 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  LIBS="$LIBS -lx"else  echo "$ac_t""no" 1>&6fifiecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:1110: 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 1115 "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:1123: \"$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 1140 "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 1158 "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 1179 "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:1190: \"$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 sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6echo "configure:1214: checking for sys/wait.h that is POSIX.1 compatible" >&5if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1219 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/wait.h>#ifndef WEXITSTATUS#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)#endif#ifndef WIFEXITED#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)#endifint main() {int s;wait (&s);s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;; return 0; }EOFif { (eval echo configure:1235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_header_sys_wait_h=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_header_sys_wait_h=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_sys_wait_h" 1>&6if test $ac_cv_header_sys_wait_h = yes; then  cat >> confdefs.h <<\EOF#define HAVE_SYS_WAIT_H 1EOFfifor ac_hdr in fcntl.h limits.h sys/time.h unistd.h sys/select.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1259: 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 1264 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1269: \"$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 working const""... $ac_c" 1>&6echo "configure:1297: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1302 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this.  */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this.  */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this.  */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this.   It does not let you subtract one const X* pointer from another in an arm   of an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this.  */  char *t;  char const *s = 0 ? (char *) 0 : (char const *) 0;  *t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */  int x[] = {25, 17};  const int *foo = &x[0];  ++foo;}{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */  typedef const int *iptr;  iptr p = 0;  ++p;}{ /* AIX XL C 1.02.0.0 rejects this saying     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */  struct s { int j; const int *ap[3]; };

⌨️ 快捷键说明

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