Changeset 596 for trunk/server/source3/configure.in
- Timestamp:
- Jul 2, 2011, 3:35:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/configure.in
r590 r596 1643 1643 LDSHFLAGS="-shared" 1644 1644 SONAMEFLAG="-Wl,-soname," 1645 PICFLAG="-fPIC" 1645 if test "${GCC}" = "yes"; then 1646 PICFLAG="-fPIC" 1647 fi 1646 1648 AC_DEFINE(STAT_ST_BLOCKSIZE,512) 1647 1649 AC_DEFINE(BROKEN_GETGRNAM,1,[Does getgrnam work correctly]) … … 2057 2059 AC_DEFINE(SIZEOF_TIME_T,8,[The size of the 'time_t' type]) 2058 2060 fi 2061 2062 AC_CACHE_CHECK([for TIME_T_MAX],samba_cv_TIME_T_MAX,[ 2063 AC_TRY_RUN([#include <time.h> 2064 main() { 2065 struct tm *tm; 2066 if (sizeof(time_t) == 8) { 2067 time_t max_time = 0x7fffffffffffffffll; 2068 tm = gmtime(&max_time); 2069 /* This should fail with 32-bit tm_year. */ 2070 if (tm == NULL) { 2071 /* Max time_t that works with 32-bit int tm_year in struct tm. */ 2072 max_time = 67768036191676799ll; 2073 tm = gmtime(&max_time); 2074 if (tm) { 2075 exit(0); 2076 } 2077 } 2078 } 2079 exit(1); 2080 }], 2081 samba_cv_TIME_T_MAX=yes,samba_cv_TIME_T_MAX=no,samba_cv_TIME_T_MAX=cross)]) 2082 if test x"$samba_cv_TIME_T_MAX" = x"yes"; then 2083 AC_DEFINE(TIME_T_MAX,67768036191676799ll,[The maximum value of the 'time_t' type]) 2084 fi 2085 2059 2086 2060 2087 AC_CACHE_CHECK([for 64 bit off_t],samba_cv_SIZEOF_OFF_T,[
Note:
See TracChangeset
for help on using the changeset viewer.