-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathconfigure.ac
More file actions
39 lines (31 loc) · 794 Bytes
/
configure.ac
File metadata and controls
39 lines (31 loc) · 794 Bytes
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(nodm, 0.13, [enrico@enricozini.org, nomeata@debian.org, sunweaver@debian.org])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([-Wall std-options foreign])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
dnl AC_GNU_SOURCE
dnl AM_MAINTAINER_MODE
dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX
dnl We use C99
AC_PROG_CC_C99
dnl Checks for header files.
AC_HEADER_STDC
dnl Checks for libraries.
PKG_CHECK_MODULES(X11, x11)
AC_CHECK_LIB(pam, pam_start,
[ PAM_LIBS="-lpam" ],
AC_MSG_ERROR(libpam is missing)
)
AC_CHECK_LIB(pam_misc, main,
[ PAM_LIBS="$PAM_LIBS -lpam_misc" ],
AC_MSG_ERROR(libpam_misc is missing)
)
AC_SUBST(PAM_LIBS)
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT