1#   BAREOS® - Backup Archiving REcovery Open Sourced
2#
3#   Copyright (C) 2017-2020 Bareos GmbH & Co. KG
4#
5#   This program is Free Software; you can redistribute it and/or
6#   modify it under the terms of version three of the GNU Affero General Public
7#   License as published by the Free Software Foundation and included
8#   in the file LICENSE.
9#
10#   This program is distributed in the hope that it will be useful, but
11#   WITHOUT ANY WARRANTY; without even the implied warranty of
12#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13#   Affero General Public License for more details.
14#
15#   You should have received a copy of the GNU Affero General Public License
16#   along with this program; if not, write to the Free Software
17#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18#   02110-1301, USA.
19
20include(CheckFunctionExists)
21
22check_function_exists(backtrace HAVE_BACKTRACE)
23check_function_exists(backtrace_symbols HAVE_BACKTRACE_SYMBOLS)
24check_function_exists(fchmod HAVE_FCHMOD)
25check_function_exists(fchown HAVE_FCHOWN)
26
27check_function_exists(add_proplist_entry HAVE_ADD_PROPLIST_ENTRY)
28check_function_exists(closefrom HAVE_CLOSEFROM)
29check_function_exists(extattr_get_file HAVE_EXTATTR_GET_FILE)
30check_function_exists(extattr_get_link HAVE_EXTATTR_GET_LINK)
31check_function_exists(extattr_list_file HAVE_EXTATTR_LIST_FILE)
32check_function_exists(extattr_list_link HAVE_EXTATTR_LIST_LINK)
33check_function_exists(
34  extattr_namespace_to_string HAVE_EXTATTR_NAMESPACE_TO_STRING
35)
36check_function_exists(extattr_set_file HAVE_EXTATTR_SET_FILE)
37check_function_exists(extattr_set_link HAVE_EXTATTR_SET_LINK)
38check_function_exists(
39  extattr_string_to_namespace HAVE_EXTATTR_STRING_TO_NAMESPACE
40)
41check_function_exists(fchownat HAVE_FCHOWNAT)
42check_function_exists(fdatasync HAVE_FDATASYNC)
43check_function_exists(fseeko HAVE_FSEEKO)
44check_function_exists(futimens HAVE_FUTIMENS)
45check_function_exists(futimes HAVE_FUTIMES)
46check_function_exists(futimesat HAVE_FUTIMESAT)
47check_function_exists(getaddrinfo HAVE_GETADDRINFO)
48check_function_exists(getea HAVE_GETEA)
49check_function_exists(gethostbyname2 HAVE_GETHOSTBYNAME2)
50check_function_exists(getmntent HAVE_GETMNTENT)
51check_function_exists(getmntinfo HAVE_GETMNTINFO)
52check_function_exists(getpagesize HAVE_GETPAGESIZE)
53check_function_exists(getproplist HAVE_GETPROPLIST)
54check_function_exists(getxattr HAVE_GETXATTR)
55check_function_exists(get_proplist_entry HAVE_GET_PROPLIST_ENTRY)
56check_function_exists(glfs_readdirplus HAVE_GLFS_READDIRPLUS)
57check_function_exists(glob HAVE_GLOB)
58check_function_exists(inet_ntop HAVE_INET_NTOP)
59check_function_exists(lchmod HAVE_LCHMOD)
60check_function_exists(lchown HAVE_LCHOWN)
61check_function_exists(lgetea HAVE_LGETEA)
62check_function_exists(lgetxattr HAVE_LGETXATTR)
63check_function_exists(listea HAVE_LISTEA)
64check_function_exists(listxattr HAVE_LISTXATTR)
65check_function_exists(llistea HAVE_LLISTEA)
66check_function_exists(llistxattr HAVE_LLISTXATTR)
67check_function_exists(localtime_r HAVE_LOCALTIME_R)
68check_function_exists(lsetea HAVE_LSETEA)
69check_function_exists(lsetxattr HAVE_LSETXATTR)
70check_function_exists(lutimes HAVE_LUTIMES)
71check_function_exists(nanosleep HAVE_NANOSLEEP)
72check_function_exists(openat HAVE_OPENAT)
73check_function_exists(poll HAVE_POLL)
74check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)
75check_function_exists(prctl HAVE_PRCTL)
76check_function_exists(putenv HAVE_PUTENV)
77check_function_exists(readdir_r HAVE_READDIR_R)
78check_function_exists(setea HAVE_SETEA)
79check_function_exists(setenv HAVE_SETENV)
80check_function_exists(setproplist HAVE_SETPROPLIST)
81check_function_exists(setreuid HAVE_SETREUID)
82check_function_exists(setxattr HAVE_SETXATTR)
83check_function_exists(hl_loa HAVE_HL_LOA)
84check_function_exists(sizeof_proplist_entry HAVE_SIZEOF_PROPLIST_ENTRY)
85check_function_exists(sqlite3_threadsafe HAVE_SQLITE3_THREADSAFE)
86check_function_exists(unlinkat HAVE_UNLINKAT)
87check_function_exists(utimes HAVE_UTIMES)
88
89check_function_exists(glfs_readdirplus HAVE_GLFS_READDIRPLUS)
90