1--- configure.orig	2026-01-18 18:24:14 UTC
2+++ configure
3@@ -5182,13 +5182,13 @@ darwin* | rhapsody*)
4   lt_cv_deplibs_check_method=pass_all
5   ;;
6
7-freebsd* | dragonfly*)
8+freebsd* | dragonfly* | midnightbsd*)
9   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10     case $host_cpu in
11     i*86 )
12       # Not sure whether the presence of OpenBSD here was a mistake.
13       # Let's accept both of them until this is cleared up.
14-      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15+      lt_cv_deplibs_check_method='file_magic (MidnightBSD|FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16       lt_cv_file_magic_cmd=/usr/bin/file
17       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
18       ;;
19@@ -9663,7 +9663,7 @@ fi
20       ;;
21
22     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23-    freebsd* | dragonfly*)
24+    freebsd* | dragonfly* | midnightbsd*)
25       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26       hardcode_libdir_flag_spec='-R$libdir'
27       hardcode_direct=yes
28