--- configure.orig 2015-05-01 06:44:56.000000000 +0200 +++ configure 2015-05-01 06:44:56.000000000 +0200 @@ -649,6 +649,8 @@ OPENBSD_TRUE NETBSD_FALSE NETBSD_TRUE +BSDSUNIX_FALSE +BSDSUNIX_TRUE FREEBSD_FALSE FREEBSD_TRUE LINUX_FALSE @@ -5182,7 +5184,7 @@ lt_cv_sys_max_cmd_len=8192; ;; - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + netbsd* | bsdsunix* | freebsd* | openbsd* | darwin* | dragonfly*) # 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` @@ -5617,13 +5619,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.*` ;; @@ -9488,7 +9490,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 @@ -10452,7 +10454,7 @@ shlibpath_var=LD_LIBRARY_PATH ;; -freebsd* | dragonfly*) +bsdsunix* | freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then @@ -18075,6 +18077,9 @@ fi case $host_os in + *bsdsunix*) + bsdsunix=yes + ;; *freebsd* | *dragonfly*) freebsd=yes ;; @@ -18120,6 +18125,14 @@ LINUX_FALSE= fi + if test "x$bsdsunix" = xyes; then + BSDSUNIX_TRUE= + BSDSUNIX_FALSE='#' +else + BSDSUNIX_TRUE='#' + BSDSUNIX_FALSE= +fi + if test "x$freebsd" = xyes; then FREEBSD_TRUE= FREEBSD_FALSE='#' @@ -18586,6 +18599,10 @@ as_fn_error $? "conditional \"LINUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${BSDSUNIX_TRUE}" && test -z "${BSDSUNIX_FALSE}"; then + as_fn_error $? "conditional \"BSDSUNIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then as_fn_error $? "conditional \"FREEBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5