--- libstdc++-v3/configure.orig 2015-11-26 13:51:04 UTC +++ libstdc++-v3/configure @@ -5996,7 +5996,7 @@ else 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` @@ -6346,13 +6346,13 @@ darwin* | rhapsody*) 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.*` ;; @@ -9820,7 +9820,7 @@ if test -z "$aix_libpath"; then aix_libp ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) + bsdsunix* | freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -10721,7 +10721,7 @@ dgux*) 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 @@ -10734,12 +10734,12 @@ freebsd* | dragonfly*) fi version_type=freebsd-$objformat case $version_type in - freebsd-elf*) + bsdsunix-elf*|freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; - freebsd-*) + bsdsunix-*|freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; @@ -12642,11 +12642,11 @@ if test -z "$aix_libpath"; then aix_libp 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 @@ -13611,7 +13611,7 @@ $as_echo_n "checking for $compiler optio ;; esac ;; - freebsd* | dragonfly*) + bsdsunix* | freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) @@ -14405,7 +14405,7 @@ dgux*) 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 @@ -14418,12 +14418,12 @@ freebsd* | dragonfly*) fi version_type=freebsd-$objformat case $version_type in - freebsd-elf*) + bsdsunix-elf*|freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; - freebsd-*) + bsdsunix-*|freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; @@ -15921,7 +15921,7 @@ fi linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu) enable_clocale_flag=gnu ;; - darwin* | freebsd*) + darwin* | bsdsunix* | freebsd*) enable_clocale_flag=darwin ;; dragonfly*) @@ -16055,8 +16055,8 @@ $as_echo "generic" >&6; } CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h ;; darwin) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin or freebsd" >&5 -$as_echo "darwin or freebsd" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin, bsdsunix or freebsd" >&5 +$as_echo "darwin, bsdsunix or freebsd" >&6; } CLOCALE_H=config/locale/generic/c_locale.h CLOCALE_CC=config/locale/generic/c_locale.cc @@ -19672,7 +19672,7 @@ $as_echo "$glibcxx_glibc217" >&6; } ac_has_nanosleep=yes ac_has_sched_yield=yes ;; - freebsd*|netbsd*|dragonfly*) + bsdsunix*|freebsd*|netbsd*|dragonfly*) ac_has_clock_monotonic=yes ac_has_clock_realtime=yes ac_has_nanosleep=yes @@ -52013,7 +52013,7 @@ done ;; - *-freebsd*) + *-bsdsunix*|*-freebsd*) SECTION_FLAGS='-ffunction-sections -fdata-sections' @@ -78971,7 +78971,7 @@ $as_echo_n "checking whether to build Fi fi if test x"$enable_libstdcxx_filesystem_ts" = x"auto"; then case "${target_os}" in - freebsd*|netbsd*|openbsd*|dragonfly*|darwin*) + bsdsunix*|freebsd*|netbsd*|openbsd*|dragonfly*|darwin*) enable_libstdcxx_filesystem_ts=yes ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)