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

📄 configure

📁 Debian Linux下的通讯程序
💻
📖 第 1 页 / 共 5 页
字号:
if test $cross_compiling = no ; then	echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test "$cross_compiling" = yes; then    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }elsecat > conftest.$ac_ext <<EOF#line 1388 "configure"#include "confdefs.h"#include <stdio.h>/* If setvbuf has the reversed format, exit 0. */main () {  /* This call has the arguments reversed.     A reversed system may check and see that the address of main     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)    exit(1);  putc('\r', stdout);  exit(0);			/* Non-reversed systems segv here.  */}EOF{ (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }if test -s conftest && (./conftest; exit) 2>/dev/null; then  ac_cv_func_setvbuf_reversed=yeselse  ac_cv_func_setvbuf_reversed=nofifirm -fr conftest*rm -f core core.* *.corefiecho "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6if test $ac_cv_func_setvbuf_reversed = yes; then  cat >> confdefs.h <<\EOF#define SETVBUF_REVERSED 1EOFfifiecho $ac_n "checking return type of signal handlers""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1427 "configure"#include "confdefs.h"#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endif#ifdef __cplusplusextern "C" void (*signal (int, void (*)(int)))(int);#elsevoid (*signal ()) ();#endifint main() { return 0; }int t() {int i;; return 0; }EOFif { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_type_signal=voidelse  rm -rf conftest*  ac_cv_type_signal=intfirm -f conftest*fiecho "$ac_t""$ac_cv_type_signal" 1>&6cat >> confdefs.h <<EOF#define RETSIGTYPE $ac_cv_type_signalEOFecho $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  rm -f conftestdata; > conftestdata# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.if test "$cross_compiling" = yes; then  ac_cv_func_utime_null=noelsecat > conftest.$ac_ext <<EOF#line 1472 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/stat.h>main() {struct stat s, t;exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime&& t.st_mtime - s.st_mtime < 120));}EOF{ (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }if test -s conftest && (./conftest; exit) 2>/dev/null; then  ac_cv_func_utime_null=yeselse  ac_cv_func_utime_null=nofifirm -fr conftest*rm -f core core.* *.corefiecho "$ac_t""$ac_cv_func_utime_null" 1>&6if test $ac_cv_func_utime_null = yes; then  cat >> confdefs.h <<\EOF#define HAVE_UTIME_NULL 1EOFfifor ac_func in valloc getpagesizedoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1509 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  */char $ac_func();int main() { return 0; }int t() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking for working mmap""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test "$cross_compiling" = yes; then  ac_cv_func_mmap=noelsecat > conftest.$ac_ext <<EOF#line 1561 "configure"#include "confdefs.h"/* Thanks to Mike Haertel and Jim Avera for this test. */#include <sys/types.h>#include <fcntl.h>#include <sys/mman.h>#ifndef HAVE_GETPAGESIZE# include <sys/param.h># ifdef EXEC_PAGESIZE#  define getpagesize() EXEC_PAGESIZE# else#  ifdef NBPG#   define getpagesize() NBPG * CLSIZE#   ifndef CLSIZE#    define CLSIZE 1#   endif#  else#   ifdef NBPC#    define getpagesize() NBPC#   else#    define getpagesize() PAGESIZE /* SVR4 */#   endif#  endif# endif#endif#ifndef HAVE_VALLOC# define valloc malloc#endif#ifdef __cplusplusextern "C" { void *valloc(unsigned), *malloc(unsigned); }#elsechar *valloc(), *malloc();#endifintmain(){  char *buf1, *buf2, *buf3;  int i = getpagesize(), j;  int i2 = i * 2;  int fd;  buf1 = (char *)valloc(i2);  buf2 = (char *)valloc(i);  buf3 = (char *)malloc(i2);  for (j = 0; j < i2; ++j)    *(buf1 + j) = rand();  fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);  write(fd, buf1, i2);  mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);  for (j = 0; j < i; ++j)    if (*(buf1 + j) != *(buf2 + j))      exit(1);  lseek(fd, (long)i, 0);  read(fd, buf2, i); /* read into mapped memory -- file should not change */  /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */  lseek(fd, (long)0, 0);  read(fd, buf3, i2);  for (j = 0; j < i2; ++j)    if (*(buf1 + j) != *(buf3 + j))      exit(1);  exit(0);}EOF{ (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }if test -s conftest && (./conftest; exit) 2>/dev/null; then  ac_cv_func_mmap=yeselse  ac_cv_func_mmap=nofifirm -fr conftest*fiecho "$ac_t""$ac_cv_func_mmap" 1>&6if test $ac_cv_func_mmap = yes; then  cat >> confdefs.h <<\EOF#define HAVE_MMAP 1EOFfifor ac_func in gettimeofday settimeofday strftimedoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1655 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  */char $ac_func();int main() { return 0; }int t() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6fidonefor ac_func in strchr memcpydoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1706 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  */char $ac_func();int main() { return 0; }int t() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6fidonefor ac_func in timesdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1757 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  */char $ac_func();int main() { return 0; }int t() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6fidonefor ac_func in mkdir strerror strstrdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1808 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  */char $ac_func();int main() { return 0; }int t() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*

⌨️ 快捷键说明

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