[rkward-cvs] SF.net SVN: rkward: [1456] trunk/rkward/admin/acinclude.m4.in
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Fri Feb 23 10:58:46 UTC 2007
Revision: 1456
http://svn.sourceforge.net/rkward/?rev=1456&view=rev
Author: tfry
Date: 2007-02-23 02:58:46 -0800 (Fri, 23 Feb 2007)
Log Message:
-----------
Add configure checks for the various ways to get pthread stack boundaries
Modified Paths:
--------------
trunk/rkward/admin/acinclude.m4.in
Modified: trunk/rkward/admin/acinclude.m4.in
===================================================================
--- trunk/rkward/admin/acinclude.m4.in 2007-02-23 01:32:57 UTC (rev 1455)
+++ trunk/rkward/admin/acinclude.m4.in 2007-02-23 10:58:46 UTC (rev 1456)
@@ -1915,6 +1915,7 @@
AC_REQUIRE([CHECK_RINCLUDE])
AC_REQUIRE([CHECK_RLAPACK])
AC_REQUIRE([CHECK_RBLAS])
+AC_REQUIRE([CHECK_PTHREAD_FLAVOR])
dnl ############################################ RKWARD specific addition end ###################################
])
@@ -2036,6 +2037,17 @@
AC_MSG_RESULT($use_r_libdir)
])
+dnl check for pthread stack limit getting functions
+AC_DEFUN([CHECK_PTHREAD_FLAVOR],
+[
+ac_check_pthread_flavor_save_LIBS="$LIBS"
+LIBS="$LIBS $LIBPTHREAD"
+AC_CHECK_HEADERS([pthread_np.h])
+AC_CHECK_FUNCS([pthread_getattr_np pthread_attr_get_np pthread_get_stacksize_np pthread_get_stackaddr_np])
+LIBS="$ac_check_pthread_flavor_save_LIBS"])
+])
+
+
dnl ############################################ RKWARD specific addition end ###################################
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list