| 1 |
# thread.m4 |
| 2 |
# serial 5 |
| 3 |
dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. |
| 4 |
dnl This file is free software; the Free Software Foundation |
| 5 |
dnl gives unlimited permission to copy and/or distribute it, |
| 6 |
dnl with or without modifications, as long as this notice is preserved. |
| 7 |
dnl This file is offered as-is, without any warranty. |
| 8 |
|
| 9 |
AC_DEFUN([gl_THREAD], |
| 10 |
[ |
| 11 |
AC_REQUIRE([gl_THREADLIB]) |
| 12 |
|
| 13 |
if test $gl_threads_api = posix; then |
| 14 |
gl_saved_LIBS="$LIBS" |
| 15 |
LIBS="$LIBS $LIBMULTITHREAD" |
| 16 |
gl_CHECK_FUNCS_ANDROID([pthread_atfork], [[#include <pthread.h>]]) |
| 17 |
LIBS="$gl_saved_LIBS" |
| 18 |
fi |
| 19 |
]) |