$NetBSD: patch-configure,v 1.8 2022/08/23 10:04:39 wiz Exp $ Sun audio support. Enable PIC and section_data_rel_ro on NetBSD, even on i386, to avoid text relocations. Do not use 'rsync'. Allow current SDL2 versions. --- configure.orig 2022-04-14 20:13:38.000000000 +0000 +++ configure @@ -2139,6 +2139,7 @@ HEADERS_LIST=" sys_resource_h sys_select_h sys_soundcard_h + sys_audioio_h sys_time_h sys_un_h sys_videoio_h @@ -2280,7 +2281,6 @@ TOOLCHAIN_FEATURES=" inline_asm_labels inline_asm_nonlocal_labels pragma_deprecated - rsync_contimeout symver_asm_label symver_gnu_asm vfp_args @@ -3431,6 +3431,8 @@ opengl_outdev_deps="opengl" opengl_outdev_suggest="sdl2" oss_indev_deps_any="sys_soundcard_h" oss_outdev_deps_any="sys_soundcard_h" +sunau_indev_deps_any="sys_audioio_h" +sunau_outdev_deps_any="sys_audioio_h" pulse_indev_deps="libpulse" pulse_outdev_deps="libpulse" sdl2_outdev_deps="sdl2" @@ -5369,6 +5371,8 @@ case $target_os in ;; netbsd) disable symver + enable section_data_rel_ro + enable pic oss_indev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio" enabled gcc || check_ldflags -Wl,-zmuldefs @@ -5767,10 +5771,13 @@ done check_cc pragma_deprecated "" '_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")' # The global variable ensures the bits appear unchanged in the object file. -test_cc <= 2.0.1 sdl2 < 2.1.0" SDL_events.h SDL_PollEvent + test_pkg_config sdl2 "sdl2 >= 2.0.1" SDL_events.h SDL_PollEvent if disabled sdl2 && "${SDL2_CONFIG}" --version > /dev/null 2>&1; then sdl2_cflags=$("${SDL2_CONFIG}" --cflags) sdl2_extralibs=$("${SDL2_CONFIG}" --libs) @@ -6599,7 +6607,6 @@ enabled makeinfo \ disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 'init-file' && enable texi2html || disable texi2html perl -v > /dev/null 2>&1 && enable perl || disable perl pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man -rsync --help 2> /dev/null | grep -q 'contimeout' && enable rsync_contimeout || disable rsync_contimeout # check V4L2 codecs available in the API if enabled v4l2_m2m; then