diff options
author | Michael Biebl <mbiebl@gmail.com> | 2010-01-23 15:01:21 -0500 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2010-01-23 15:01:21 -0500 |
commit | eb3879122867c6376c9c7e155d8919e0609f9fdf (patch) | |
tree | 2ab1ce049adb2efad39811f6c6da0b0a481aaa1f /configure.in | |
parent | c083adf8e79036a2e9a7218ea556f73671c08ff1 (diff) |
Check for availability of libufs on (k)freebsd
Check for availability of libufs on (k)freebsd and compile the code
conditionally.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2c74863f..2394c456 100644 --- a/configure.in +++ b/configure.in @@ -508,6 +508,14 @@ AM_CONDITIONAL(HALD_COMPILE_SOLARIS, [test x$HALD_BACKEND = xsolaris], [Compilin AC_SUBST(HALD_BACKEND) if test "x$HALD_BACKEND" = "xfreebsd"; then AC_SEARCH_LIBS([clock_gettime], [rt]) + LIBUFS_LIBS="" + AC_CHECK_HEADERS([libufs.h], + [AC_CHECK_LIB([libufs], [ufs_disk_fillout], [USE_LIBUFS="yes"], [], [])]) + if test "x$USE_LIBUFS" = "xyes"; then + AC_DEFINE(HAVE_LIBUFS, 1, [Set if we have libufs]) + LIBUFS_LIBS="-lufs" + AC_SUBST(LIBUFS_LIBS) + fi USE_BSDLIBUSB20=no USE_BSDLIBUSB=no LIBUSB20_LIBS="" |