mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-18 06:54:15 +01:00
Improve PAM header test.
This commit is contained in:
parent
6c14351260
commit
f9d92169f7
@ -33,15 +33,18 @@
|
|||||||
|
|
||||||
AC_INIT([pam_yubico], [1.9], [simon@yubico.com])
|
AC_INIT([pam_yubico], [1.9], [simon@yubico.com])
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
AC_CONFIG_AUX_DIR([build-aux])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AM_INIT_AUTOMAKE([foreign])
|
AM_INIT_AUTOMAKE([foreign])
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_LIBTOOL_WIN32_DLL
|
AC_LIBTOOL_WIN32_DLL
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
AC_CHECK_HEADERS([security/pam_appl.h security/pam_modules.h security/_pam_macros.h], [], [AC_MSG_ERROR([[PAM header files not found, install libpam-dev.]])])
|
AC_CHECK_HEADERS([security/pam_appl.h], [],
|
||||||
|
[AC_MSG_ERROR([[PAM header files not found, install libpam-dev.]])])
|
||||||
|
AC_CHECK_HEADERS([security/pam_modules.h security/_pam_macros.h], [], [],
|
||||||
|
[#include <security/pam_appl.h>])
|
||||||
|
|
||||||
AC_LIB_HAVE_LINKFLAGS([yubikey-client],,
|
AC_LIB_HAVE_LINKFLAGS([yubikey-client],, [#include <libykclient.h>],
|
||||||
[#include <libykclient.h>],
|
|
||||||
[yubikey_client_init ();])
|
[yubikey_client_init ();])
|
||||||
|
|
||||||
AC_SUBST(PAMDIR, "\$(exec_prefix)/lib/security")
|
AC_SUBST(PAMDIR, "\$(exec_prefix)/lib/security")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user