gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / config / debuginfod.m4
CommitLineData
f6720b1c 1dnl Copyright (C) 1997-2020 Free Software Foundation, Inc.
301a9420
AM
2dnl This file is free software, distributed under the terms of the GNU
3dnl General Public License. As a special exception to the GNU General
4dnl Public License, this file may be distributed as part of a program
5dnl that contains a configuration script generated by Autoconf, under
6dnl the same distribution terms as the rest of that program.
7
8AC_DEFUN([AC_DEBUGINFOD],
9[
f6720b1c 10# Handle optional debuginfod support
301a9420 11AC_ARG_WITH([debuginfod],
f6720b1c
AM
12 AC_HELP_STRING([--with-debuginfod], [Enable debuginfo lookups with debuginfod (auto/yes/no)]),
13 [], [with_debuginfod=auto])
301a9420
AM
14AC_MSG_CHECKING([whether to use debuginfod])
15AC_MSG_RESULT([$with_debuginfod])
16
f6720b1c
AM
17if test "x$with_debuginfod" != xno; then
18 PKG_CHECK_MODULES([DEBUGINFOD], [libdebuginfod >= 0.179],
19 [AC_DEFINE([HAVE_LIBDEBUGINFOD], [1], [Define to 1 if debuginfod is enabled.])],
20 [if test "x$with_debuginfod" = xyes; then
21 AC_MSG_ERROR(["--with-debuginfod was given, but libdebuginfod is missing or unusable."])
22 else
23 AC_MSG_WARN([libdebuginfod is missing or unusable; some features may be unavailable.])
24 fi])
301a9420 25else
f6720b1c 26 AC_MSG_WARN([debuginfod support disabled; some features may be unavailable.])
301a9420
AM
27fi
28])
This page took 0.101047 seconds and 4 git commands to generate.