Changeset 232 for branches/samba-3.2.x/source/configure.in
- Timestamp:
- May 27, 2009, 9:09:42 AM (17 years ago)
- File:
-
- 1 edited
-
branches/samba-3.2.x/source/configure.in (modified) (9 diffs)
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 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 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], 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=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_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_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_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_DNSServiceRegister" != x"yes"; then 5903 6021 have_dnssd_support=no 5904 6022 fi
Note:
See TracChangeset
for help on using the changeset viewer.
