~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2008-04-20 21:30:00 UTC
  • mfrom: (1.2.2 upstream) (3.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080420213000-fs4i8efmfc793bnn
new upstream release
closes: #475175
closes: #463348
closes: #475982

Show diffs side-by-side

added added

removed removed

Lines of Context:
1915
1915
AC_REQUIRE([CHECK_RINCLUDE])
1916
1916
AC_REQUIRE([CHECK_RLAPACK])
1917
1917
AC_REQUIRE([CHECK_RBLAS])
 
1918
AC_REQUIRE([CHECK_PTHREAD_FLAVOR])
1918
1919
dnl ############################################ RKWARD specific addition end ###################################
1919
1920
 
1920
1921
])
1966
1967
AC_MSG_CHECKING(whether we should link against libRlapack.so)
1967
1968
if test -f "$R_HOMEDIR/lib/libRlapack.so"; then
1968
1969
   AC_MSG_RESULT(yes $R_HOMEDIR/lib/libRlapack.so exists)
1969
 
   R_LAPACK_FLAG="-lRlapack"
 
1970
   R_LAPACK_FLAG="-lRlapack -lgfortran"
1970
1971
else
1971
1972
   AC_MSG_RESULT(no $R_HOMEDIR/lib/libRlapack.so does not exist)
1972
1973
   R_LAPACK_FLAG=""
2036
2037
AC_MSG_RESULT($use_r_libdir)
2037
2038
])
2038
2039
 
 
2040
dnl check for pthread stack limit getting functions
 
2041
AC_DEFUN([CHECK_PTHREAD_FLAVOR],
 
2042
[
 
2043
ac_check_pthread_flavor_save_LIBS="$LIBS"
 
2044
LIBS="$LIBS $LIBPTHREAD"
 
2045
AC_CHECK_HEADERS([pthread_np.h])
 
2046
AC_CHECK_FUNCS([pthread_getattr_np pthread_attr_get_np pthread_get_stacksize_np pthread_get_stackaddr_np])
 
2047
LIBS="$ac_check_pthread_flavor_save_LIBS"])
 
2048
])
 
2049
 
 
2050
 
2039
2051
dnl ############################################ RKWARD specific addition end ###################################
2040
2052
 
2041
2053