Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/configure.in

    r590 r596  
    16431643                        LDSHFLAGS="-shared"
    16441644                        SONAMEFLAG="-Wl,-soname,"
    1645                         PICFLAG="-fPIC"
     1645                        if test "${GCC}" = "yes"; then
     1646                                PICFLAG="-fPIC"
     1647                        fi
    16461648                        AC_DEFINE(STAT_ST_BLOCKSIZE,512)
    16471649                        AC_DEFINE(BROKEN_GETGRNAM,1,[Does getgrnam work correctly])
     
    20572059    AC_DEFINE(SIZEOF_TIME_T,8,[The size of the 'time_t' type])
    20582060fi
     2061
     2062AC_CACHE_CHECK([for TIME_T_MAX],samba_cv_TIME_T_MAX,[
     2063AC_TRY_RUN([#include <time.h>
     2064main() {
     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}],
     2081samba_cv_TIME_T_MAX=yes,samba_cv_TIME_T_MAX=no,samba_cv_TIME_T_MAX=cross)])
     2082if 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])
     2084fi
     2085
    20592086
    20602087AC_CACHE_CHECK([for 64 bit off_t],samba_cv_SIZEOF_OFF_T,[
Note: See TracChangeset for help on using the changeset viewer.