1 # Check prerequisites for compiling lib/c-stack.c.
3 # Copyright (C) 2002-2004, 2008-2021 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # Written by Paul Eggert.
12 AC_DEFUN([gl_C_STACK],
14 dnl 'c-stack' needs -lsigsegv if and only if the 'sigsegv' module needs it.
15 if test "$with_libsigsegv" = yes; then
16 if test "$gl_cv_lib_sigsegv" = yes; then
17 AC_SUBST([LIBCSTACK], [$LIBSIGSEGV])
18 AC_SUBST([LTLIBCSTACK], [$LTLIBSIGSEGV])