| 1 |
# c-stack.m4 |
| 2 |
# serial 25 |
| 3 |
dnl Copyright (C) 2002-2004, 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 |
# Check prerequisites for compiling lib/c-stack.c. |
| 10 |
|
| 11 |
# Written by Paul Eggert. |
| 12 |
|
| 13 |
AC_DEFUN([gl_C_STACK], |
| 14 |
[ |
| 15 |
dnl 'c-stack' needs -lsigsegv if and only if the 'sigsegv' module needs it. |
| 16 |
AC_REQUIRE([gl_SIGSEGV]) |
| 17 |
if test $gl_sigsegv_uses_libsigsegv = yes; then |
| 18 |
AC_SUBST([LIBCSTACK], [$LIBSIGSEGV]) |
| 19 |
AC_SUBST([LTLIBCSTACK], [$LTLIBSIGSEGV]) |
| 20 |
fi |
| 21 |
]) |