summaryrefslogtreecommitdiffstats
path: root/config/user-libaio.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/user-libaio.m4')
-rw-r--r--config/user-libaio.m410
1 files changed, 1 insertions, 9 deletions
diff --git a/config/user-libaio.m4 b/config/user-libaio.m4
index d7a7cb508..0a58876fe 100644
--- a/config/user-libaio.m4
+++ b/config/user-libaio.m4
@@ -2,13 +2,5 @@ dnl #
dnl # Check for libaio - only used for libaiot test cases.
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBAIO], [
- LIBAIO=
-
- AC_CHECK_HEADER([libaio.h], [
- user_libaio=yes
- AC_SUBST([LIBAIO], ["-laio"])
- AC_DEFINE([HAVE_LIBAIO], 1, [Define if you have libaio])
- ], [
- user_libaio=no
- ])
+ FIND_SYSTEM_LIBRARY(LIBAIO, [], [libaio.h], [], [aio], [], [user_libaio=yes], [user_libaio=no])
])