1--- configure.orig 2025-09-12 18:51:19 UTC 2+++ configure 3@@ -6776,7 +6776,7 @@ else $as_nop 4 lt_cv_sys_max_cmd_len=8192; 5 ;; 6 7- bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8+ bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd* | midnightbsd*) 9 # This has been around since 386BSD, at least. Likely further. 10 if test -x /sbin/sysctl; then 11 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12@@ -7201,7 +7201,7 @@ darwin* | rhapsody*) 13 lt_cv_deplibs_check_method=pass_all 14 ;; 15 16-freebsd* | dragonfly*) 17+freebsd* | dragonfly* | midnightbsd*) 18 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 19 case $host_cpu in 20 i*86 ) 21@@ -11586,7 +11586,7 @@ fi 22 ;; 23 24 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 25- freebsd* | dragonfly*) 26+ freebsd* | dragonfly* | midnightbsd*) 27 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 28 hardcode_libdir_flag_spec='-R$libdir' 29 hardcode_direct=yes 30@@ -12636,7 +12636,7 @@ dgux*) 31 shlibpath_var=LD_LIBRARY_PATH 32 ;; 33 34-freebsd* | dragonfly*) 35+freebsd* | dragonfly* | midnightbsd*) 36 # DragonFly does not have aout. When/if they implement a new 37 # versioning mechanism, adjust this. 38 if test -x /usr/bin/objformat; then 39@@ -15289,7 +15289,7 @@ if test "x$enable_asm" = xyes; then 40 case "$host_cpu" in 41 i?86) 42 case "$host_os" in 43- linux* | *freebsd* | dragonfly* | *netbsd*) 44+ linux* | *freebsd* | dragonfly* | *netbsd* | midnightbsd*) 45 asm_arch=x86 46 ;; 47 gnu*) 48@@ -15299,7 +15299,7 @@ if test "x$enable_asm" = xyes; then 49 ;; 50 x86_64 | amd64) 51 case "$host_os" in 52- linux* | *freebsd* | dragonfly* | *netbsd*) 53+ linux* | *freebsd* | dragonfly* | *netbsd* | midnightbsd*) 54 asm_arch=x86_64 55 ;; 56 esac 57@@ -15644,7 +15644,7 @@ printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_n 58 printf %s "checking if more special flags are required for pthreads... " >&6; } 59 flag=no 60 case ${host_os} in 61- aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 62+ aix* | midnightbsd* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 63 osf* | hpux*) flag="-D_REENTRANT";; 64 solaris*) 65 if test "$GCC" = "yes"; then 66@@ -16238,7 +16238,7 @@ xx86 | xx86_64 | xppc64) 67 # extension functions unknown at compile time. 68 # https://gitlab.freedesktop.org/glvnd/libglvnd/-/merge_requests/249 69 case "$host_os$HAVE_TLS" in 70- *gnu*yes|*freebsd*yes) 71+ *gnu*yes|*freebsd*yes|*midnightbsd*yes) 72 gldispatch_entry_type=${asm_arch}_tls 73 ;; 74 *) 75