$NetBSD: patch-configure,v 1.12 2026/11/12 21:25:49 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)

For NetBSD, on m68k, sh3, and mips, use ppc_video.c as we do in xsrc.

--- configure.orig	2026-11-10 14:44:51.000000000 +0000
+++ configure
@@ -26390,7 +26390,7 @@ printf '%s\n' "#define USE_ALPHA_PIO 1" >>confdefs.h
 	esac
 	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
 	;;
-  arm*)
+  *arm*|aarch64*)
 	ARM_VIDEO=yes
 	DEFAULT_INT10="stub"
 	;;
@@ -26411,7 +26411,7 @@ printf '%s\n' "#define USE_ALPHA_PIO 1" >>confdefs.h
 				;;
 	esac
         ;;
-  powerpc*)
+  powerpc*|m68k|sh3*|mips*)
 	PPC_VIDEO=yes
 	case $host_os in
 		*freebsd*)	DEFAULT_INT10=stub ;;
@@ -26432,7 +26432,7 @@ printf '%s\n' "#define USE_DEV_IO 1" >>confdefs.h
 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
 				;;
@@ -28449,7 +28449,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
 
