+ LB_CHECK_COMPILE([if zfs defines dsl_sync_task_do_nowait],
+ dsl_sync_task_do_nowait, [
+ #include <sys/dsl_synctask.h>
+ ],[
+ dsl_sync_task_do_nowait(NULL, NULL, NULL, NULL, NULL, 0, NULL);
+ ],[
+ AC_DEFINE(HAVE_DSL_SYNC_TASK_DO_NOWAIT, 1,
+ [Have dsl_sync_task_do_nowait in ZFS])
+ ])
+ LB_CHECK_COMPILE([if zfs defines sa_spill_alloc],
+ sa_spill_alloc, [
+ #include <sys/kmem.h>
+ #include <sys/sa.h>
+ ],[
+ void *ptr;
+
+ ptr = sa_spill_alloc(KM_SLEEP);
+ sa_spill_free(ptr);
+ ],[
+ AC_DEFINE(HAVE_SA_SPILL_ALLOC, 1,
+ [Have sa_spill_alloc in ZFS])
+ ])
+ LB_CHECK_COMPILE([if zfs defines spa_maxblocksize],
+ spa_maxblocksize, [
+ #include <sys/spa.h>
+ ],[
+ spa_t *spa = NULL;
+ int size;
+
+ size = spa_maxblocksize(spa);
+ ],[
+ AC_DEFINE(HAVE_SPA_MAXBLOCKSIZE, 1,
+ [Have spa_maxblocksize in ZFS])
+ ])