cmake: Add checks for getprogname() and getexecname()
authorAndreas Schneider <asn@samba.org>
Fri, 15 Nov 2019 08:39:21 +0000 (09:39 +0100)
committerAndreas Schneider <asn@samba.org>
Fri, 15 Nov 2019 08:39:21 +0000 (09:39 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
ConfigureChecks.cmake
config.h.cmake

index 3148c2307c4f53fef7f51623ae57d782ff116239..0286efffaaa3a0cec37862c118604699b567b3c8 100644 (file)
@@ -45,6 +45,8 @@ check_include_file(security/pam_ext.h HAVE_SECURITY_PAM_EXT_H)
 check_function_exists(strncpy HAVE_STRNCPY)
 check_function_exists(vsnprintf HAVE_VSNPRINTF)
 check_function_exists(snprintf HAVE_SNPRINTF)
+check_function_exists(getprogname HAVE_GETPROGNAME)
+check_function_exists(getexecname HAVE_GETEXECNAME)
 
 check_prototype_definition(pam_vprompt
     "int pam_vprompt(const pam_handle_t *_pamh, int _style, char **_resp, const char *_fmt, va_list _ap)"
index d587f844f8b6ab31c5de6da37f94c66dda4ee170..0b18d438b7f6d13abefa368cbb70371117286a89 100644 (file)
@@ -29,6 +29,8 @@
 #cmakedefine HAVE_PAM_VPROMPT_CONST 1
 #cmakedefine HAVE_PAM_PROMPT_CONST 1
 #cmakedefine HAVE_PAM_STRERROR_CONST 1
+#cmakedefine HAVE_GETPROGNAME 1
+#cmakedefine HAVE_GETEXECNAME 1
 
 /*************************** LIBRARIES ***************************/
 #cmakedefine PAM_LIBRARY "${PAM_LIBRARY}"