1#   BAREOS® - Backup Archiving REcovery Open Sourced
2#
3#   Copyright (C) 2017-2019 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(strtoll HAVE_STRTOLL)
23CHECK_FUNCTION_EXISTS(backtrace HAVE_BACKTRACE)
24CHECK_FUNCTION_EXISTS(backtrace_symbols HAVE_BACKTRACE_SYMBOLS)
25CHECK_FUNCTION_EXISTS(bcopy HAVE_BCOPY)
26CHECK_FUNCTION_EXISTS(fchdir HAVE_FCHDIR)
27CHECK_FUNCTION_EXISTS(fchmod HAVE_FCHMOD)
28CHECK_FUNCTION_EXISTS(fchown HAVE_FCHOWN)
29
30CHECK_FUNCTION_EXISTS(add_proplist_entry HAVE_ADD_PROPLIST_ENTRY)
31# CHECK_FUNCTION_EXISTS(chflags HAVE_CHFLAGS)
32CHECK_FUNCTION_EXISTS(closefrom HAVE_CLOSEFROM)
33CHECK_FUNCTION_EXISTS(extattr_get_file HAVE_EXTATTR_GET_FILE)
34CHECK_FUNCTION_EXISTS(extattr_get_link HAVE_EXTATTR_GET_LINK)
35CHECK_FUNCTION_EXISTS(extattr_list_file HAVE_EXTATTR_LIST_FILE)
36CHECK_FUNCTION_EXISTS(extattr_list_link HAVE_EXTATTR_LIST_LINK)
37CHECK_FUNCTION_EXISTS(extattr_namespace_to_string HAVE_EXTATTR_NAMESPACE_TO_STRING)
38CHECK_FUNCTION_EXISTS(extattr_set_file HAVE_EXTATTR_SET_FILE)
39CHECK_FUNCTION_EXISTS(extattr_set_link HAVE_EXTATTR_SET_LINK)
40CHECK_FUNCTION_EXISTS(extattr_string_to_namespace HAVE_EXTATTR_STRING_TO_NAMESPACE)
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(getcwd HAVE_GETCWD)
49CHECK_FUNCTION_EXISTS(getea HAVE_GETEA)
50CHECK_FUNCTION_EXISTS(gethostbyname2 HAVE_GETHOSTBYNAME2)
51CHECK_FUNCTION_EXISTS(gethostid HAVE_GETHOSTID)
52CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME)
53CHECK_FUNCTION_EXISTS(getmntent HAVE_GETMNTENT)
54CHECK_FUNCTION_EXISTS(getmntinfo HAVE_GETMNTINFO)
55CHECK_FUNCTION_EXISTS(getpagesize HAVE_GETPAGESIZE)
56CHECK_FUNCTION_EXISTS(getpid HAVE_GETPID)
57CHECK_FUNCTION_EXISTS(getproplist HAVE_GETPROPLIST)
58CHECK_FUNCTION_EXISTS(gettimeofday HAVE_GETTIMEOFDAY)
59CHECK_FUNCTION_EXISTS(getxattr HAVE_GETXATTR)
60CHECK_FUNCTION_EXISTS(get_proplist_entry HAVE_GET_PROPLIST_ENTRY)
61CHECK_FUNCTION_EXISTS(glfs_readdirplus HAVE_GLFS_READDIRPLUS)
62CHECK_FUNCTION_EXISTS(glob HAVE_GLOB)
63CHECK_FUNCTION_EXISTS(inet_ntop HAVE_INET_NTOP)
64CHECK_FUNCTION_EXISTS(inet_pton HAVE_INET_PTON)
65CHECK_FUNCTION_EXISTS(lchmod HAVE_LCHMOD)
66CHECK_FUNCTION_EXISTS(lchown HAVE_LCHOWN)
67CHECK_FUNCTION_EXISTS(lgetea HAVE_LGETEA)
68CHECK_FUNCTION_EXISTS(lgetxattr HAVE_LGETXATTR)
69CHECK_FUNCTION_EXISTS(listea HAVE_LISTEA)
70CHECK_FUNCTION_EXISTS(listxattr HAVE_LISTXATTR)
71CHECK_FUNCTION_EXISTS(llistea HAVE_LLISTEA)
72CHECK_FUNCTION_EXISTS(llistxattr HAVE_LLISTXATTR)
73CHECK_FUNCTION_EXISTS(localtime_r HAVE_LOCALTIME_R)
74CHECK_FUNCTION_EXISTS(lsetea HAVE_LSETEA)
75CHECK_FUNCTION_EXISTS(lsetxattr HAVE_LSETXATTR)
76CHECK_FUNCTION_EXISTS(lstat HAVE_LSTAT)
77CHECK_FUNCTION_EXISTS(lutimes HAVE_LUTIMES)
78CHECK_FUNCTION_EXISTS(malloc_trim HAVE_MALLOC_TRIM)
79CHECK_FUNCTION_EXISTS(nanosleep HAVE_NANOSLEEP)
80CHECK_FUNCTION_EXISTS(nl_langinfo HAVE_NL_LANGINFO)
81CHECK_FUNCTION_EXISTS(openat HAVE_OPENAT)
82CHECK_FUNCTION_EXISTS(poll HAVE_POLL)
83CHECK_FUNCTION_EXISTS(posix_fadvise HAVE_POSIX_FADVISE)
84CHECK_FUNCTION_EXISTS(prctl HAVE_PRCTL)
85CHECK_FUNCTION_EXISTS(putenv HAVE_PUTENV)
86CHECK_FUNCTION_EXISTS(readdir_r HAVE_READDIR_R)
87CHECK_FUNCTION_EXISTS(select HAVE_SELECT)
88CHECK_FUNCTION_EXISTS(setea HAVE_SETEA)
89CHECK_FUNCTION_EXISTS(setenv HAVE_SETENV)
90CHECK_FUNCTION_EXISTS(setlocale HAVE_SETLOCALE)
91CHECK_FUNCTION_EXISTS(setpgid HAVE_SETPGID)
92CHECK_FUNCTION_EXISTS(setpgrp HAVE_SETPGRP)
93CHECK_FUNCTION_EXISTS(setproplist HAVE_SETPROPLIST)
94CHECK_FUNCTION_EXISTS(setreuid HAVE_SETREUID)
95CHECK_FUNCTION_EXISTS(setsid HAVE_SETSID)
96CHECK_FUNCTION_EXISTS(setxattr HAVE_SETXATTR)
97CHECK_FUNCTION_EXISTS(hl_loa HAVE_HL_LOA)
98CHECK_FUNCTION_EXISTS(signal HAVE_SIGNAL)
99CHECK_FUNCTION_EXISTS(sizeof_proplist_entry HAVE_SIZEOF_PROPLIST_ENTRY)
100CHECK_FUNCTION_EXISTS(sqlite3_threadsafe HAVE_SQLITE3_THREADSAFE)
101CHECK_FUNCTION_EXISTS(stpcpy HAVE_STPCPY)
102CHECK_FUNCTION_EXISTS(strcasecmp HAVE_STRCASECMP)
103CHECK_FUNCTION_EXISTS(strerror HAVE_STRERROR)
104CHECK_FUNCTION_EXISTS(strerror_r HAVE_STRERROR_R)
105CHECK_FUNCTION_EXISTS(strftime HAVE_STRFTIME)
106CHECK_FUNCTION_EXISTS(strncmp HAVE_STRNCMP)
107CHECK_FUNCTION_EXISTS(strncpy HAVE_STRNCPY)
108CHECK_FUNCTION_EXISTS(tcgetattr HAVE_TCGETATTR)
109CHECK_FUNCTION_EXISTS(unlinkat HAVE_UNLINKAT)
110CHECK_FUNCTION_EXISTS(utimes HAVE_UTIMES)
111CHECK_FUNCTION_EXISTS(vfprintf HAVE_VFPRINTF)
112CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)
113CHECK_FUNCTION_EXISTS(vsnprintf HAVE_VSNPRINTF)
114CHECK_FUNCTION_EXISTS(vprintf HAVE_VPRINTF)
115
116CHECK_FUNCTION_EXISTS(dcgettext HAVE_DCGETTEXT)
117CHECK_FUNCTION_EXISTS(fork HAVE_FORK)
118CHECK_FUNCTION_EXISTS(gai_strerror HAVE_GAI_STRERROR)
119CHECK_FUNCTION_EXISTS(gethostbyname_r HAVE_GETHOSTBYNAME_R)
120CHECK_FUNCTION_EXISTS(gettext HAVE_GETTEXT)
121CHECK_FUNCTION_EXISTS(glfs_readdirplus HAVE_GLFS_READDIRPLUS)
122