--- configure.orig 2020-04-06 22:51:03.000000000 +1000 +++ configure 2020-08-02 00:55:59.550745000 +1000 @@ -850,6 +850,8 @@ HAVE_SOLARIS_TRUE HAVE_LINUX_FALSE HAVE_LINUX_TRUE +HAVE_BSDSUNIX_FALSE +HAVE_BSDSUNIX_TRUE HAVE_FREEBSD_FALSE HAVE_FREEBSD_TRUE am__fastdepCXX_FALSE @@ -5641,12 +5643,23 @@ THREADFLAGS="-pthread" have_freebsd="yes" ;; + bsdsunix*) + THREADFLAGS="-pthread" + have_bsdsunix="yes" + ;; *) LDFLAGS="-pthread $LDFLAGS" CXXFLAGS="-pthread $CXXFLAGS" ;; esac + if test "x$have_bsdsunix" = "xyes"; then + HAVE_BSDSUNIX_TRUE= + HAVE_BSDSUNIX_FALSE='#' +else + HAVE_BSDSUNIX_TRUE='#' + HAVE_BSDSUNIX_FALSE= +fi if test "x$have_freebsd" = "xyes"; then HAVE_FREEBSD_TRUE= HAVE_FREEBSD_FALSE='#' @@ -8909,7 +8922,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` @@ -9320,6 +9333,20 @@ lt_cv_deplibs_check_method=pass_all ;; +bsdsunix*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + lt_cv_deplibs_check_method='file_magic (BSDSUniX)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in @@ -13575,7 +13602,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 @@ -14620,6 +14647,22 @@ shlibpath_var=LD_LIBRARY_PATH ;; +bsdsunix*) + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + objformat=elf + fi + 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. @@ -16718,7 +16761,7 @@ 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 @@ -17658,7 +17701,7 @@ ;; esac ;; - freebsd* | dragonfly*) + bsdsunix* | freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) @@ -18582,6 +18625,22 @@ shlibpath_var=LD_LIBRARY_PATH ;; +bsdsunix*) + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + objformat=elf + fi + 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. @@ -26620,6 +26679,10 @@ as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_BSDSUNIX_TRUE}" && test -z "${HAVE_BSDSUNIX_FALSE}"; then + as_fn_error $? "conditional \"HAVE_BSDSUNIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_FREEBSD_TRUE}" && test -z "${HAVE_FREEBSD_FALSE}"; then as_fn_error $? "conditional \"HAVE_FREEBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5