mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.ac: basic libs
* configure.ac: basic libraries like -lm are necessary for some extension libraries on some platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3c023337c
commit
999b58c1ff
1 changed files with 5 additions and 2 deletions
|
@ -18,7 +18,6 @@ AC_DISABLE_OPTION_CHECKING
|
||||||
AC_ARG_VAR([cflags], [additional CFLAGS])
|
AC_ARG_VAR([cflags], [additional CFLAGS])
|
||||||
AC_ARG_VAR([cppflags], [additional CPPFLAGS])
|
AC_ARG_VAR([cppflags], [additional CPPFLAGS])
|
||||||
AC_ARG_VAR([cxxflags], [additional CXXFLAGS])
|
AC_ARG_VAR([cxxflags], [additional CXXFLAGS])
|
||||||
ORIG_LIBS=$LIBS
|
|
||||||
|
|
||||||
{ # environment section
|
{ # environment section
|
||||||
|
|
||||||
|
@ -716,13 +715,16 @@ AS_CASE(["$target_os"],
|
||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
AS_CASE(["$target_os"],[*bsd*|dragonfly*],[],[ac_cv_func_daemon=no])
|
AS_CASE(["$target_os"],[*bsd*|dragonfly*],[],[ac_cv_func_daemon=no])
|
||||||
|
|
||||||
|
AS_UNSET(ORIG_LIBS)
|
||||||
POSTLINK=:
|
POSTLINK=:
|
||||||
AC_SUBST(POSTLINK)
|
AC_SUBST(POSTLINK)
|
||||||
AS_CASE(["$target_os"],
|
AS_CASE(["$target_os"],
|
||||||
[nextstep*], [ ],
|
[nextstep*], [ ],
|
||||||
[openstep*], [ ],
|
[openstep*], [ ],
|
||||||
[rhapsody*], [ ],
|
[rhapsody*], [ ],
|
||||||
[darwin*], [ RUBY_PREPEND_OPTION(LIBS, -lobjc)
|
[darwin*], [
|
||||||
|
ORIG_LIBS="$LIBS"
|
||||||
|
RUBY_PREPEND_OPTION(LIBS, -lobjc)
|
||||||
RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT)
|
RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT)
|
||||||
AC_MSG_CHECKING(whether Mac OS X 10.5 or later)
|
AC_MSG_CHECKING(whether Mac OS X 10.5 or later)
|
||||||
AC_TRY_CPP([#include <AvailabilityMacros.h>
|
AC_TRY_CPP([#include <AvailabilityMacros.h>
|
||||||
|
@ -959,6 +961,7 @@ main()
|
||||||
ac_cv_func_round=no
|
ac_cv_func_round=no
|
||||||
],
|
],
|
||||||
[ LIBS="-lm $LIBS"])
|
[ LIBS="-lm $LIBS"])
|
||||||
|
: ${ORIG_LIBS=$LIBS}
|
||||||
|
|
||||||
AC_CHECK_LIB(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
|
AC_CHECK_LIB(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
|
||||||
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
|
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue