Applied DragonFly BSD patch https://github.com/DragonFlyBSD/DeltaPorts/blob/master/ports/devel/sdl20/dragonfly/patch-configure
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/configure b/configure
index 1bca953..6f65b6e 100755
--- a/configure
+++ b/configure
@@ -26390,7 +26390,7 @@ CheckInotify()
{
save_LIBS="$LIBS"
case "$host" in
- *-*-freebsd*) LIBS="$LIBS -linotify"
+ *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
;;
esac
for ac_header in sys/inotify.h
@@ -26426,7 +26426,7 @@ fi
printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
case "$host" in
- *-*-freebsd*)
+ *-*-freebsd*|*-*-dragonfly*)
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
;;
esac
diff --git a/configure.ac b/configure.ac
index 93eceee..fccb2a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2837,7 +2837,7 @@ CheckInotify()
{
save_LIBS="$LIBS"
case "$host" in
- *-*-freebsd*) LIBS="$LIBS -linotify"
+ *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
;;
esac
AC_CHECK_HEADERS(sys/inotify.h, [have_inotify_inotify_h_hdr=yes])
@@ -2846,7 +2846,7 @@ CheckInotify()
if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
AC_DEFINE(HAVE_INOTIFY, 1, [ ])
case "$host" in
- *-*-freebsd*)
+ *-*-freebsd*|*-*-dragonfly*)
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
;;
esac