… | |
… | |
269 | return 0; |
269 | return 0; |
270 | } |
270 | } |
271 | ]])],ac_cv_accept4=yes,ac_cv_accept4=no)]) |
271 | ]])],ac_cv_accept4=yes,ac_cv_accept4=no)]) |
272 | test $ac_cv_accept4 = yes && AC_DEFINE(HAVE_ACCEPT4, 1, accept4(2) is available) |
272 | test $ac_cv_accept4 = yes && AC_DEFINE(HAVE_ACCEPT4, 1, accept4(2) is available) |
273 | |
273 | |
|
|
274 | AC_CHECK_HEADERS([sys/mount.h]) |
|
|
275 | AC_CACHE_CHECK(for mount/umount, ac_cv_mount, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
276 | #include <sys/mount.h> |
|
|
277 | int main (void) |
|
|
278 | { |
|
|
279 | int res; |
|
|
280 | res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
|
|
281 | res = umount ("path"); |
|
|
282 | return 0; |
|
|
283 | } |
|
|
284 | ]])],ac_cv_mount=yes,ac_cv_mount=no)]) |
|
|
285 | test $ac_cv_mount = yes && AC_DEFINE(HAVE_MOUNT, 1, mount/umount are available) |
|
|
286 | AC_CACHE_CHECK(for umount2, ac_cv_umount2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
287 | #include <sys/mount.h> |
|
|
288 | int main (void) |
|
|
289 | { |
|
|
290 | int res; |
|
|
291 | res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
|
|
292 | return 0; |
|
|
293 | } |
|
|
294 | ]])],ac_cv_umount2=yes,ac_cv_umount2=no)]) |
|
|
295 | test $ac_cv_umount2 = yes && AC_DEFINE(HAVE_UMOUNT2, 1, umount2 is available) |
|
|
296 | |
274 | AC_OUTPUT |
297 | AC_OUTPUT |
275 | |
298 | |