| 1 |
# sigsegv.m4 |
| 2 |
# serial 2 |
| 3 |
dnl Copyright (C) 2021-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 |
dnl From Bruno Haible. |
| 10 |
|
| 11 |
AC_DEFUN_ONCE([gl_SIGSEGV], |
| 12 |
[ |
| 13 |
AC_ARG_WITH([libsigsegv], |
| 14 |
[AS_HELP_STRING([[--with-libsigsegv]], |
| 15 |
[use the GNU libsigsegv library, when present, instead of the gnulib module 'sigsegv'])]) |
| 16 |
if test "$with_libsigsegv" = yes; then |
| 17 |
gl_LIBSIGSEGV |
| 18 |
gl_sigsegv_uses_libsigsegv="$gl_cv_lib_sigsegv" |
| 19 |
else |
| 20 |
gl_sigsegv_uses_libsigsegv=no |
| 21 |
fi |
| 22 |
]) |