$NetBSD: patch-configure,v 1.4 2024/09/17 07:34:31 adam Exp $ Sun audio support. Enable PIC and section_data_rel_ro on NetBSD, even on i386, to avoid text relocations. Fix install_name_dir on Darwin. Do not use 'rsync'. --- configure.orig 2024-08-04 23:23:18.000000000 +0000 +++ configure @@ -2200,6 +2200,7 @@ HEADERS_LIST=" sys_resource_h sys_select_h sys_soundcard_h + sys_audioio_h sys_time_h sys_un_h sys_videoio_h @@ -2343,7 +2344,6 @@ TOOLCHAIN_FEATURES=" inline_asm_labels inline_asm_nonlocal_labels pragma_deprecated - rsync_contimeout symver_asm_label symver_gnu_asm vfp_args @@ -3532,6 +3532,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" @@ -5496,6 +5498,7 @@ 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 @@ -5522,7 +5525,7 @@ case $target_os in ;; darwin) enabled ppc && add_asflags -force_cpusubtype_ALL - install_name_dir_default='$(SHLIBDIR)' + install_name_dir_default=$shlibdir SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(INSTALL_NAME_DIR)/$(SLIBNAME_WITH_MAJOR),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)' enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress strip="${strip} -x" @@ -5895,10 +5898,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 < /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 xmllint --version > /dev/null 2>&1 && enable xmllint || disable xmllint # check V4L2 codecs available in the API