Changeset 232 for branches/samba-3.2.x/source/configure.in
- Timestamp:
- May 27, 2009, 9:09:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/configure.in
r228 r232 1279 1279 ################################################# 1280 1280 # Check whether struct stat has timestamps with sub-second resolution. 1281 # At least IRIX and Solaris have these. 1281 # At least IRIX and Solaris have these. FREEBSD does as well, 1282 # but with different members 1282 1283 # 1283 1284 # We check that … … 1288 1289 # "struct timespec" or "timespec_t". Linux doesn't have timespec_t, so we 1289 1290 # prefer struct timespec. 1291 AC_CACHE_CHECK([whether struct stat has timespec timestamps], 1292 samba_cv_stat_timespec_hires, 1293 [ 1294 AC_TRY_COMPILE( 1295 [ 1296 #if TIME_WITH_SYS_TIME 1297 # include <sys/time.h> 1298 # include <time.h> 1299 #else 1300 # if HAVE_SYS_TIME_H 1301 # include <sys/time.h> 1302 # else 1303 # include <time.h> 1304 # endif 1305 #endif 1306 #ifdef HAVE_SYS_STAT_H 1307 #include <sys/stat.h> 1308 #endif 1309 ], 1310 [ 1311 struct timespec t; 1312 struct stat s = {0}; 1313 t = s.st_mtimespec; 1314 t = s.st_ctimespec; 1315 t = s.st_atimespec; 1316 ], 1317 samba_cv_stat_timespec_hires=yes, samba_cv_stat_timespec_hires=no) 1318 ]) 1319 1320 if test x"$samba_cv_stat_timespec_hires" = x"yes" ; then 1321 AC_DEFINE(HAVE_STAT_ST_MTIMESPEC, 1, [whether struct stat contains st_mtimepec]) 1322 AC_DEFINE(HAVE_STAT_ST_ATIMESPEC, 1, [whether struct stat contains st_atimespec]) 1323 AC_DEFINE(HAVE_STAT_ST_CTIMESPEC, 1, [whether struct stat contains st_ctimespec]) 1324 AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1, [whether struct stat has sub-second timestamps]) 1325 fi 1326 1327 1290 1328 1291 1329 AC_CACHE_CHECK([whether struct stat has sub-second timestamps], samba_cv_stat_hires, … … 1328 1366 fi 1329 1367 1330 AC_CACHE_CHECK([whether struct stat has sub-second timestamps without struct timespec ], samba_cv_stat_hires_notimespec,1368 AC_CACHE_CHECK([whether struct stat has sub-second timestamps without struct timespec suffixed nsec], samba_cv_stat_hires_notimespec, 1331 1369 [ 1332 1370 AC_TRY_COMPILE( … … 1356 1394 t.tv_nsec = s.st_atimensec; 1357 1395 ], 1358 samba_cv_stat_hires =yes, samba_cv_stat_hires=no)1396 samba_cv_stat_hires_notimespec=yes, samba_cv_stat_hires_notimespec=no) 1359 1397 ]) 1360 1398 … … 1364 1402 AC_DEFINE(HAVE_STAT_ST_CTIMENSEC, 1, [whether struct stat contains st_ctimensec]) 1365 1403 AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1, 1366 [whether struct stat has sub-second timestamps without struct timespec]) 1404 [whether struct stat has sub-second timestamps without struct timespec suffixed nsec]) 1405 fi 1406 1407 dnl AIX stype sub-second timestamps: 1408 AC_CACHE_CHECK([whether struct stat has sub-second timestamps without struct timespec suffixed _n], samba_cv_stat_hires_notimespec_n, 1409 [ 1410 AC_TRY_COMPILE( 1411 [ 1412 #if TIME_WITH_SYS_TIME 1413 # include <sys/time.h> 1414 # include <time.h> 1415 #else 1416 # if HAVE_SYS_TIME_H 1417 # include <sys/time.h> 1418 # else 1419 # include <time.h> 1420 # endif 1421 #endif 1422 #ifdef HAVE_SYS_STAT_H 1423 #include <sys/stat.h> 1424 #endif 1425 ], 1426 [ 1427 struct timespec t; 1428 struct stat s = {0}; 1429 t.tv_sec = s.st_mtime; 1430 t.tv_nsec = s.st_mtime_n; 1431 t.tv_sec = s.st_ctime; 1432 t.tv_nsec = s.st_ctime_n; 1433 t.tv_sec = s.st_atime; 1434 t.tv_nsec = s.st_atime_n; 1435 ], 1436 samba_cv_stat_hires_notimespec_n=yes, samba_cv_stat_hires_notimespec_n=no) 1437 ]) 1438 1439 if test x"$samba_cv_stat_hires_notimespec_n" = x"yes" ; then 1440 AC_DEFINE(HAVE_STAT_ST_MTIME_N, 1, [whether struct stat contains st_mtime_n]) 1441 AC_DEFINE(HAVE_STAT_ST_ATIME_N, 1, [whether struct stat contains st_atime_n]) 1442 AC_DEFINE(HAVE_STAT_ST_CTIME_N, 1, [whether struct stat contains st_ctime_n]) 1443 AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1, 1444 [whether struct stat has sub-second timestamps without struct timespec suffixed _n]) 1445 fi 1446 1447 dnl Tru64 has _micro_second_ resolution: 1448 AC_CACHE_CHECK([whether struct stat has sub-second timestamps in st_uXtime], samba_cv_stat_hires_uxtime, 1449 [ 1450 AC_TRY_COMPILE( 1451 [ 1452 #if TIME_WITH_SYS_TIME 1453 # include <sys/time.h> 1454 # include <time.h> 1455 #else 1456 # if HAVE_SYS_TIME_H 1457 # include <sys/time.h> 1458 # else 1459 # include <time.h> 1460 # endif 1461 #endif 1462 #ifdef HAVE_SYS_STAT_H 1463 #include <sys/stat.h> 1464 #endif 1465 ], 1466 [ 1467 struct timespec t; 1468 struct stat s = {0}; 1469 t.tv_sec = s.st_mtime; 1470 t.tv_nsec = s.st_umtime * 1000; 1471 t.tv_sec = s.st_ctime; 1472 t.tv_nsec = s.st_uctime * 1000; 1473 t.tv_sec = s.st_atime; 1474 t.tv_nsec = s.st_uatime * 1000; 1475 ], 1476 samba_cv_stat_hires_uxtime=yes, samba_cv_stat_hires_uxtime=no) 1477 ]) 1478 1479 if test x"$samba_cv_stat_hires_uxtime" = x"yes" ; then 1480 AC_DEFINE(HAVE_STAT_ST_UMTIME, 1, [whether struct stat contains st_umtime]) 1481 AC_DEFINE(HAVE_STAT_ST_UATIME, 1, [whether struct stat contains st_uatime]) 1482 AC_DEFINE(HAVE_STAT_ST_UCTIME, 1, [whether struct stat contains st_uctime]) 1483 AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1, 1484 [whether struct stat has sub-second timestamps in st_uXtime]) 1367 1485 fi 1368 1486 … … 1390 1508 t = s.st_birthtimespec; 1391 1509 ], 1392 samba_cv_stat_st_birthtimespec=yes, samba_cv_stat_ birthtimespec=no)1510 samba_cv_stat_st_birthtimespec=yes, samba_cv_stat_st_birthtimespec=no) 1393 1511 ]) 1394 1512 … … 1420 1538 t.tv_nsec = s.st_birthtimensec; 1421 1539 ], 1422 samba_cv_stat_st_birthtimensec=yes, samba_cv_stat_ birthtimensec=no)1540 samba_cv_stat_st_birthtimensec=yes, samba_cv_stat_st_birthtimensec=no) 1423 1541 ]) 1424 1542 … … 1450 1568 t = s.st_birthtime; 1451 1569 ], 1452 samba_cv_stat_st_birthtime=yes, samba_cv_stat_ birthtime=no)1570 samba_cv_stat_st_birthtime=yes, samba_cv_stat_st_birthtime=no) 1453 1571 ]) 1454 1572 … … 5900 6018 AC_CHECK_LIB_EXT(dns_sd, DNSSD_LIBS, DNSServiceRegister) 5901 6019 if test x"$ac_cv_func_DNSServiceRegister" != x"yes" -a \ 5902 x"$ac_cv_lib_ext_ DNSServiceRegister" != x"yes"; then6020 x"$ac_cv_lib_ext_dns_sd_DNSServiceRegister" != x"yes"; then 5903 6021 have_dnssd_support=no 5904 6022 fi
Note:
See TracChangeset
for help on using the changeset viewer.