-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
50 lines (39 loc) · 1.03 KB
/
configure.ac
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
##
## Copyright (c) 2010 Alexey Smirnov <alexey.smirnov@gmx.com>
##
## See the file LICENSE for information on usage and redistribution
## of this file, and for a DISCLAMER OF ALL WARRANTIES.
##
m4_define([VERSION_NUMBER], m4_esyscmd([git describe --abbrev=4 | tr -d '\n']))
AC_PREREQ(2.61)
AC_INIT([xlockmost], [VERSION_NUMBER], [alexey.smirnov@gmx.com])
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_MAINTAINER_MODE
AC_CONFIG_HEADER([config.h])
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_HEADER_STDC
AC_CHECK_HEADERS([signal.h pwd.h string.h],,
[
AC_MSG_ERROR([missing required header (see above)])
])
PKG_CHECK_MODULES([X11], [x11 xext])
AC_CHECK_HEADER([security/pam_appl.h],
[
AC_CHECK_LIB([pam], [pam_start],
[
PAM_LIBS="-lpam"
AC_SUBST(PAM_LIBS)
],
[
AC_MSG_ERROR([*** libpam missing])
])
],
[
AC_MSG_ERROR([PAM headers not found])
])
AC_FUNC_VPRINTF
AC_TYPE_UID_T
AC_TYPE_SIGNAL
AC_OUTPUT([Makefile src/Makefile])