--- configure.orig 2016-08-03 07:54:55 UTC +++ configure @@ -2958,7 +2958,7 @@ case "${ENABLE_GOLD}" in case "${target}" in *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ - | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ + | *-*-netbsd* | *-*-openbsd* | *-*-bsdsunix* | *-*-freebsd* | *-*-dragonfly* \ | *-*-solaris2* | *-*-nto* | *-*-nacl*) case "${target}" in *-*-linux*aout* | *-*-linux*oldld*) @@ -3190,7 +3190,7 @@ if test x$enable_libgomp = x ; then case "${target}" in *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) ;; - *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) + *-*-netbsd* | *-*-bsdsunix* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) ;; *-*-solaris2* | *-*-hpux11*) ;; @@ -3436,6 +3436,10 @@ case "${target}" in ;; powerpc-*-aix* | rs6000-*-aix*) ;; + powerpc-*-bsdsunix*) + ;; + powerpc64-*-bsdsunix*) + ;; powerpc-*-freebsd*) ;; powerpc64-*-freebsd*) @@ -3486,6 +3490,9 @@ case "${target}" in alpha*-*-*vms*) noconfigdirs="$noconfigdirs ${libgcj}" ;; + arm*-*-bsdsunix*) + noconfigdirs="$noconfigdirs ${libgcj}" + ;; arm*-*-freebsd*) noconfigdirs="$noconfigdirs ${libgcj}" ;; @@ -3655,6 +3662,9 @@ case "${target}" in *-*-dragonfly*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; + *-*-bsdsunix*) + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + ;; *-*-freebsd*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; @@ -3713,6 +3723,12 @@ case "${target}" in ;; *-*-dragonfly*) ;; + *-*-bsdsunix*) + if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ + && test -f /usr/local/include/gmp.h; then + with_gmp=/usr/local + fi + ;; *-*-freebsd*) if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ && test -f /usr/local/include/gmp.h; then