1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 12:20:26 +02:00

configure: Provide guesses for `AC_RUN_IFELSE' tests when cross-compiling.

* configure.in: Define PTHREAD_ATTR_GETSTACK_WORKS when cross-compiling.
This commit is contained in:
Ludovic Courtès 2012-05-23 15:17:18 +02:00
parent e7e267be01
commit 2ce4a1ae88

View file

@ -1446,11 +1446,18 @@ int main ()
#endif #endif
]])], ]])],
[works=yes [works=yes
AC_DEFINE(PTHREAD_ATTR_GETSTACK_WORKS, [1], [Define when pthread_att_get_stack works for the main thread])], AC_MSG_RESULT([yes])],
[works=no], [works=no
[]) AC_MSG_RESULT([no])],
[works=yes
AC_MSG_RESULT([assuming it does])])
if test "x$works" = "xyes"; then
AC_DEFINE(PTHREAD_ATTR_GETSTACK_WORKS, [1],
[Define when pthread_att_get_stack works for the main thread])
fi
CFLAGS="$old_CFLAGS" CFLAGS="$old_CFLAGS"
AC_MSG_RESULT($works)
fi # with_threads=pthreads fi # with_threads=pthreads