* configure.in (rb_cv_lib_xpg4_needed): Drop legacy FreeBSD

support regarding libxpg4.  Those old versions of FreeBSD
  shipped with the library don't have a working pthread library
  anyway.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2008-10-29 04:05:15 +00:00
parent 3cdf3ac9c9
commit 6955f6977a
2 changed files with 7 additions and 15 deletions

View File

@ -1,3 +1,10 @@
Wed Oct 29 13:02:17 2008 Akinori MUSHA <knu@iDaemons.org>
* configure.in (rb_cv_lib_xpg4_needed): Drop legacy FreeBSD
support regarding libxpg4. Those old versions of FreeBSD
shipped with the library don't have a working pthread library
anyway.
Wed Oct 29 11:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (dln-a-out): cannot make shared library nor work with

View File

@ -608,21 +608,6 @@ bsdi*) LIBS="-lm $LIBS"
AC_DEFINE(BROKEN_SETREGID, 1)
ac_cv_sizeof_rlim_t=8;;
freebsd*) LIBS="-lm $LIBS"
AC_CACHE_CHECK([whether -lxpg4 has to be linked],
rb_cv_lib_xpg4_needed,
[AC_TRY_CPP([
#include <osreldate.h>
#if __FreeBSD_version < 400020 || \
(__FreeBSD_version >= 500000 && __FreeBSD_version < 500005)
#error needs libxpg4
#endif
],
rb_cv_lib_xpg4_needed=no,
rb_cv_lib_xpg4_needed=yes,
rb_cv_lib_xpg4_needed=yes)])
if test "$rb_cv_lib_xpg4_needed" = yes; then
AC_CHECK_LIB(xpg4, setlocale)
fi
;;
dragonfly*) LIBS="-lm $LIBS"
;;