--- configure.orig 2020-09-05 20:48:38.713583000 +1000 +++ configure 2020-09-05 20:49:05.813906000 +1000 @@ -6341,7 +6341,7 @@ lt_cv_sys_max_cmd_len=8192; ;; - bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) + bitrig* | darwin* | dragonfly* | bsdsunix* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` @@ -6749,13 +6749,13 @@ lt_cv_deplibs_check_method=pass_all ;; -freebsd* | dragonfly*) +bsdsunix* | freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_deplibs_check_method='file_magic (BSDSUniX|FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; @@ -11581,7 +11581,7 @@ ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) + bsdsunix* | freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -12627,6 +12627,18 @@ shlibpath_var=LD_LIBRARY_PATH ;; +bsdsunix*) + objformat=elf + version_type=bsdsunix-$objformat + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. @@ -19789,11 +19801,11 @@ ld_shlibs_CXX=no ;; - freebsd-elf*) + bsdsunix-elf*|freebsd-elf*) archive_cmds_need_lc_CXX=no ;; - freebsd* | dragonfly*) + bsdsunix* | freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes @@ -20733,7 +20745,7 @@ ;; esac ;; - freebsd* | dragonfly*) + bsdsunix* | freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) @@ -21660,6 +21672,18 @@ shlibpath_var=LD_LIBRARY_PATH ;; +bsdsunix*) + objformat=elf + version_type=bsdsunix-$objformat + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. @@ -23289,6 +23313,14 @@ case $host_os in + bsdsunix*) + + # -kthread: BSDSUniX kernel threads (preferred to -pthread since SMP-able) + # lthread: LinuxThreads port on BSDSUniX (also preferred to -pthread) + + ax_pthread_flags="-kthread lthread $ax_pthread_flags" + ;; + freebsd*) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) @@ -28650,7 +28682,7 @@ HAVE_WINDOW_ANDROID=yes ;; - *-linux* | *-cygwin* | *-solaris* | *-netbsd* | *-freebsd* | *-openbsd* | *-kfreebsd* | *-dragonflybsd* | *-gnu* ) + *-linux* | *-cygwin* | *-solaris* | *-netbsd* | *-bsdsunix* | *-freebsd* | *-openbsd* | *-kfreebsd* | *-dragonflybsd* | *-gnu* ) if test "x$NEED_WGL" = "xyes"; then as_fn_error $? "WGL is not available on unix" "$LINENO" 5 fi @@ -34033,51 +34065,6 @@ _ACEOF fi - if test "x$FOUND_CDPARANOIA" = "xyes"; - then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for paranoia_cachemodel_size in -lcdda_paranoia" >&5 -$as_echo_n "checking for paranoia_cachemodel_size in -lcdda_paranoia... " >&6; } -if ${ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdda_paranoia -lcdda_interface $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char paranoia_cachemodel_size (); -int -main () -{ -return paranoia_cachemodel_size (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size=yes -else - ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size" >&5 -$as_echo "$ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size" >&6; } -if test "x$ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size" = xyes; then : - : -else - HAVE_CDPARANOIA=no -fi - - fi @@ -34224,51 +34211,6 @@ _ACEOF fi - if test "x$FOUND_CDPARANOIA" = "xyes"; - then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for paranoia_cachemodel_size in -lcdda_paranoia" >&5 -$as_echo_n "checking for paranoia_cachemodel_size in -lcdda_paranoia... " >&6; } -if ${ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdda_paranoia -lcdda_interface $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char paranoia_cachemodel_size (); -int -main () -{ -return paranoia_cachemodel_size (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size=yes -else - ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size" >&5 -$as_echo "$ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size" >&6; } -if test "x$ac_cv_lib_cdda_paranoia_paranoia_cachemodel_size" = xyes; then : - : -else - HAVE_CDPARANOIA=no -fi - - fi