Imported Upstream version 3.8
[platform/upstream/diffutils.git] / m4 / c-stack.m4
1 # Check prerequisites for compiling lib/c-stack.c.
2
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.
7
8 # Written by Paul Eggert.
9
10 # serial 23
11
12 AC_DEFUN([gl_C_STACK],
13 [
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])
19     fi
20   fi
21 ])