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