$NetBSD: patch-configure,v 1.9 2022/12/15 10:29:59 wiz Exp $ Use USE_AMD64_IOPL (actually x86_64_iopl) on NetBSD/amd64. (c.f. patch-hw_xfree86_os-support_bsd_i386.c) for netbsd, force pass pthread configure checks (pthread not needed) --- configure.orig 2022-12-14 02:25:26.000000000 +0000 +++ configure @@ -24606,7 +24606,7 @@ printf "%s\n" "#define USE_ALPHA_PIO 1" esac GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" ;; - arm*) + *arm*|aarch64*) ARM_VIDEO=yes DEFAULT_INT10="stub" ;; @@ -24648,7 +24648,8 @@ printf "%s\n" "#define USE_DEV_IO 1" >>c printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h ;; *netbsd*) -printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h +printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h + SYS_LIBS=-lx86_64 ;; @@ -26523,7 +26524,8 @@ case ${host_os} in netbsd*) # use libc stubs, don't link against libpthread, to allow # dynamic loading - ax_pthread_flags="" + ax_pthread_flags="none" + ax_pthread_ok="yes" ;; esac