Skip to content
Snippets Groups Projects
Commit e74dd448 authored by ale's avatar ale
Browse files

link in symbols for debug output

parent f375ec4d
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ AC_DEFUN([AX_LIB_PAM], [
[AC_MSG_ERROR([No PAM header files found])])])
AC_CHECK_HEADERS([security/pam_ext.h], [],
[AC_CHECK_HEADERS([pam/pam_ext.h])])
AC_CHECK_HEADERS([security/_pam_macros.h])
RRA_HEADER_PAM_CONST
AC_SUBST(PAMDIR, "/lib/security")
......
......@@ -26,6 +26,16 @@
#include <pam/pam_modules.h>
#endif
#ifdef HAVE_SECURITY__PAM_MACROS_H
#include <security/_pam_macros.h>
#else
#define D(x) do { \
printf ("debug: %s:%d (%s): ", __FILE__, __LINE__, __FUNCTION__); \
printf x; \
printf ("\n"); \
} while (0)
#endif
#ifndef PAM_EXTERN
#ifdef PAM_STATIC
#define PAM_EXTERN static
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment