Changeset 4285 for zzuf/trunk/configure.ac
- Timestamp:
- Jan 20, 2010, 8:59:01 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/configure.ac
r4262 r4285 93 93 AC_TRY_COMPILE([#include <stdio.h>], 94 94 [FILE *fp; fp->_IO_read_ptr++; fp->_IO_read_end++], 95 [ac_cv_have_ file_io_read_ptr=yes],96 [ac_cv_have_ file_io_read_ptr=no])97 AC_MSG_RESULT($ac_cv_have_ file_io_read_ptr)98 if test "$ac_cv_have_ file_io_read_ptr" != "no"; then95 [ac_cv_have_glibc_file=yes], 96 [ac_cv_have_glibc_file=no]) 97 AC_MSG_RESULT($ac_cv_have_glibc_file) 98 if test "$ac_cv_have_glibc_file" != "no"; then 99 99 AC_DEFINE(HAVE_GLIBC_FILE, 1, [Define to 1 if FILE has glibc-style members]) 100 100 fi … … 103 103 AC_TRY_COMPILE([#include <stdio.h>], 104 104 [FILE *fp; fp->_bf._base++; fp->_r++; fp->_p++], 105 [ac_cv_have_f ile_bf_base=yes],106 [ac_cv_have_f ile_bf_base=no])107 AC_MSG_RESULT($ac_cv_have_f ile_bf_base)108 if test "$ac_cv_have_f ile_bf_base" != "no"; then105 [ac_cv_have_freebsd_file=yes], 106 [ac_cv_have_freebsd_file=no]) 107 AC_MSG_RESULT($ac_cv_have_freebsd_file) 108 if test "$ac_cv_have_freebsd_file" != "no"; then 109 109 AC_DEFINE(HAVE_FREEBSD_FILE, 1, [Define to 1 if FILE has FreeBSD-style members]) 110 fi 111 112 AC_MSG_CHECKING([for _base, _cnt and _ptr in FILE (Solaris-style)]) 113 AC_TRY_COMPILE([#include <stdio.h>], 114 [FILE *fp; fp->_base++; fp->_cnt++; fp->_ptr++], 115 [ac_cv_have_solaris_file=yes], 116 [ac_cv_have_solaris_file=no]) 117 AC_MSG_RESULT($ac_cv_have_solaris_file) 118 if test "$ac_cv_have_solaris_file" != "no"; then 119 AC_DEFINE(HAVE_SOLARIS_FILE, 1, [Define to 1 if FILE has Solaris-style members]) 110 120 fi 111 121 … … 115 125 AC_TRY_COMPILE( 116 126 [#define _LARGEFILE64_SOURCE 127 #define _LARGEFILE_SOURCE 117 128 #include <stdio.h>], 118 129 [fpos64_t x; long long int y = x.__pos;], … … 120 131 AC_TRY_COMPILE( 121 132 [#define _LARGEFILE64_SOURCE 133 #define _LARGEFILE_SOURCE 122 134 #include <stdio.h>], 123 135 [fpos64_t x; long long int y = (long long int)x;],
Note: See TracChangeset
for help on using the changeset viewer.